Solved

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

Posted on 2001-06-19
5
178 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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction When developing Access applications, often we need to know whether an object exists.  This article presents a quick and reliable routine to determine if an object exists without that object being opened. If you wanted to inspect/ite…
Describes a method of obtaining an object variable to an already running instance of Microsoft Access so that it can be controlled via automation.
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…
Basics of query design. Shows you how to construct a simple query by adding tables, perform joins, defining output columns, perform sorting, and apply criteria.

820 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