Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Access 2000 manipulation
Message
 
To
23/04/2001 14:48:31
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
00498685
Message ID:
00498749
Views:
14
>I am working on an VFP application that inserts data from VFP tables into an Access2K database. Does anyone know the command to take "tableA" in an Access2K .mbd file and append it to "tableB" in the same .mdb file? The data that is already in "tableB" has to stay intact.
>
>Thanks,
>Steve

Hi Steve,

Below is pure MS Access 2K SQL statement to do the job:
INSERT INTO tblB ( ID, PhoneNumber ) SELECT tblA.ID, A.PhoneNumber FROM tblA;
to execute it you may use VBA code below:

currentdb.execute "INSERT INTO tblB ( ID, PhoneNumber ) SELECT tblA.ID, A.PhoneNumber FROM tblA;"


Hope, I understand your problem correctly.
Igor
Igor Gelin
Database Developer
Previous
Reply
Map
View

Click here to load this message in the networking platform