Copy linked table into a local table

Frenstall

New member
Local time
Today, 05:30
Joined
Oct 7, 2005
Messages
9
Well, heres the situation. I have a complicated query that refuses to work all the time using a linked table for the data (data is gathered from a FoxPro DB). If I copy the data into a local table in my database then the query will run fine.

The data needs to be updated only 1/month but I don't want to have to do it manually every month. I would like to use VBA to copy and paste the data from the linked table into my local table. Does anyone know of an efficient way to do this? I'm trying to avoid running a VBA loop and adding each record one-by-one (very slow).
 
look up the INSERT SQL command, do a docmd.runSQL and then say to insert all from your orignal table into the new one.
 
Hey thanks, I got it going and it works relatively quickly (considering there's over 20,000 records)
 

Users who are viewing this thread

Back
Top Bottom