Hi,
I am trying to copy records from 1 database to another. These 2 databases(MS Access) are similar (in the sense of structure i.e. same tables, columns). I am supposed to use DAO to complete this.
I would like to know if it is possible to copy the records from 1 table to another without having to loop through the entire table? Something like:-
insert into table1.userTable select * from table2.userTable
I have seen the insert sql syntax in vb help and there is this 'IN' keyword. Does it do what I want? And also, how can I loop through all the tables in my database without hardcoding the name?
Are there any bulkloading functions in Access too?
Thanks for your time,
Leon If you need additional help, you can email to me at zaoliang@hotmail.com I don't guaranty that I will be able to solve your problems but I will try my best
I am trying to copy records from 1 database to another. These 2 databases(MS Access) are similar (in the sense of structure i.e. same tables, columns). I am supposed to use DAO to complete this.
I would like to know if it is possible to copy the records from 1 table to another without having to loop through the entire table? Something like:-
insert into table1.userTable select * from table2.userTable
I have seen the insert sql syntax in vb help and there is this 'IN' keyword. Does it do what I want? And also, how can I loop through all the tables in my database without hardcoding the name?
Are there any bulkloading functions in Access too?
Thanks for your time,
Leon If you need additional help, you can email to me at zaoliang@hotmail.com I don't guaranty that I will be able to solve your problems but I will try my best