Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Question - MDE

Status
Not open for further replies.

101287

MIS
Joined
Apr 8, 2006
Messages
189
Location
US
Need to know? I have a macro that copy a MDB file. The file has been change to an MDE database. Could I have a macro that copy the tables in the MDE file to my own MDB database?

Please advise. Thank you for collaboration.

Luis
 
You could use something like:
Code:
With DBEngine(0)(0)
.Execute "INSERT INTO YourTable SELECT * FROM C:\Test2002.MDE.YourMDETable"
End With
YourTable would have the same fields as the table you're trying to copy from.

Hope this helps

HarleyQuinn
---------------------------------
The most overlooked advantage to owning a computer is that if they foul up there's no law against wacking them around a little. - Joe Martin

Get the most out of Tek-Tips, read FAQ222-2244 before posting.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top