-Collapse +Expand
Access
Search Access Group:

Advanced
Access To/From
To/FromCODEGuides
Access Store
PRESTWOODSTORE

Prestwood eMagazine

July Edition
Subscribe now! It's Free!
Enter your email:

   ► MB LobbyMicrosoft Access BoardAccess VBA Programming Topic   Print This     

How Refresh Linked Tables On Startup?

How Refresh Linked Tables On Startup? in Access VBA Programming topic (part of our Microsoft Access group).

Quick Search: Refresh   Startup   How Refresh   How Refresh Linked   Tables Startup  
SteveL13
Rockford, IL
I have an Access database that has three pretty big linked tables via ODBC. Is there a way to "copy" these tables over to the local database on startup so the querys/reports will respond much quicker?
 Posted 24 years ago (Thread Starter)
Comment Quote
About SteveL13
Visit Profile
Approved member.
Member subscribes to this thread with a verified email.

Post ID #7724, 3 replies
Thread Started 9/30/2002 1:48:00 PM
View Counter=2581
Last Reply Posted 10/1/2002 9:22:00 AM)
Location=Rockford, IL  
Joined=25 years ago   MB Posts=30  
jdschram
MN
here is my initial thought...
Since you have a table linked allready, you could copy that table. The easiest way I can think of is to import the same table. You can do this through a macro, or the same way you link the tables...my suggestion is you create 2 querys one to delete all records from the "imported" table and on to append all data from the linked table to the imported...about runnint it automatically...you can create a form that on open runs the a macro containg the two queries you made, and then closes...if you dont want to be prompted at all go to TOOLS->OPTIONS->EDIT/FIND
and uncheck action queries. That should do it.
 Posted 24 years ago
Comment Quote
About jdschram
Visit Profile
Approved member.
Member subscribes to this thread with a verified email.

Post ID #7729 (Level 1.1)  Reply to 7724
Thread Started 10/1/2002 6:39:00 AM
View Counter=2
Location=MN  
Joined=25 years ago   MB Posts=259  
Most Recent Post
jdschram
MN
create a macro that executes the make-table query

then...create a form

on the form on_load Function add this code...

Dim stDocName As String
stDocName = "YOURMACRONAME"
DoCmd.RunMacro stDocName
DoCmd.Close
you can make this form any size you want...now, TOOLS->STARTUP set the display form/page to the form you just created. This form will execute the macro and then close the form.
 Posted 24 years ago
Comment Quote
About jdschram
Visit Profile
Approved member.
Member subscribes to this thread with a verified email.

Post ID #7738 (Level 1.2)  Reply to 7724
Reply Posted 10/1/2002 9:22:00 AM
Location=MN  
Joined=25 years ago   MB Posts=259  
SteveL13
Rockford, IL
Actually, after having worked on this all night... I think what I really want to do is find a way to automatically run a query when the application starts up. Do you know how I can accomplish this? Its a make-table query which works fine. Now I just need to automate it.

--Steve
 Posted 24 years ago (Thread Starter)
Comment Quote
About SteveL13
Visit Profile
Approved member.
Member subscribes to this thread with a verified email.

Post ID #7731 (Level 1.3)  Reply to 7724
Reply Posted 10/1/2002 6:49:00 AM
Location=Rockford, IL  
Joined=25 years ago   MB Posts=30  

Revive Thread!

Add a comment to revive this old thread and make this archived thread more useful.

Write a Comment...
Full Editor
...
Sign in...

If you are a member, Sign In. Or, you can Create a Free account now.


Anonymous Post (text-only, no HTML):

Enter your name and security key.

Your Name:
Security key = P1165A1
Enter key:
Icon: A Post    Thread    Idea    Important!    Cool    Sad    No    Yes    Includes a Link...   
Thread #7724 Counter
2581
Since 4/2/2008
Go ahead!   Use Us! Call: 916-726-5675  Or visit our new sales site: 
www.prestwood.com


©1995-2026 Prestwood IT Solutions.   [Security & Privacy]