Copy Record from Table 1 to Table 2 - Acc97 - VBA 
Author Message
 Copy Record from Table 1 to Table 2 - Acc97 - VBA

Am in need of some code that will let me do the following from my Access 97
application:
Two tables are contained within application, Table 1 and Table 2.
Read the first record of Table 1 and copy it to Table 2 and then close both
tables.
Thanks,
John


Tue, 09 Jul 2002 03:00:00 GMT  
 Copy Record from Table 1 to Table 2 - Acc97 - VBA
Look in help for the INSERT INTO sql statement. You'll need to use criteria
to get the 'first' record, as 'first' is a clear concept only in an ordered
set.

Then look in help for the Execute method of a database object. If you have
problems with the code, reply here, one may be able to assist you further.

Hth
--
Radu Lascae
please reply to messages in the group

Quote:
> Am in need of some code that will let me do the following from my Access
97
> application:
> Two tables are contained within application, Table 1 and Table 2.
> Read the first record of Table 1 and copy it to Table 2 and then close
both
> tables.
> Thanks,
> John



Wed, 10 Jul 2002 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Copy fields from record in table A to record in table B using VBA

2. Copying Tables and Deleting Records in VBA

3. Acc97: Reading last record in a table

4. Assign variable a value in a table with vba, acc97

5. Eliminate records of one table based on another table record count

6. need something like foreach record in table - add record to another table

7. Cannot add record to Visual Foxpro table after deleting all records in table

8. HowTo Copy a Recordset from a Table to an identically structured table

9. Copying the structure of a table to a new table

10. Copying Table text to tables

11. Copy a Table to another Table

12. Copying table definition to create new table

 

 
Powered by phpBB® Forum Software