Solved

How do I refresh data imported from a service without closing and reopening my access file

Posted on 2001-06-19
5
173 Views
Last Modified: 2008-03-06
This is the setup I have:
One MS-SQL 7 database exporting data to my access file through a service every 2 minutes.  But if my access file is opened and data is exported to it, then I need to close and reopen my access file in order to view the newly exported data.

Thus, my question is how can I refresh my access file with the newly exported data without having to close and reopen it?
0
Comment
Question by:jeebeedoo
  • 3
5 Comments
 
LVL 6

Accepted Solution

by:
PsychoDazey earned 200 total points
ID: 6208194
There is a Refresh Method built into Access, it is collection.refresh
The problem is it will only work on things like tables and forms, not recordsets or databases.
There is also a requery method with the same basic syntax.
0
 
LVL 6

Expert Comment

by:PsychoDazey
ID: 6208209
To expand on my earlier comment: it really depends on what you want to refresh and if it is a multiuser environment.
0
 
LVL 1

Expert Comment

by:CJHarrap
ID: 6209076
if you are using an ADO recordset, there is a requery method of the ado recordset object.

Cheers,

CJ.
0
 
LVL 6

Expert Comment

by:PsychoDazey
ID: 6210165
Yes, that is the requery method I referred to in my first comment.
0
 

Author Comment

by:jeebeedoo
ID: 6211495
I had forgotten to put a me.refresh on my form...

Thanx PsychoDazey!
0

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

In the article entitled Working with Objects – Part 1 (http://www.experts-exchange.com/Microsoft/Development/MS_Access/A_4942-Working-with-Objects-Part-1.html), you learned the basics of working with objects, properties, methods, and events. In Work…
I see at least one EE question a week that pertains to using temporary tables in MS Access.  But surprisingly, I was unable to find a single article devoted solely to this topic. I don’t intend to describe all of the uses of temporary tables in t…
Familiarize people with the process of utilizing SQL Server functions from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Ac…
In Microsoft Access, when working with VBA, learn some techniques for writing readable and easily maintained code.

757 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now