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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Code to copy from one Access DB to another...

Status
Not open for further replies.

martindavey

Programmer
Jan 2, 2000
122
GB
Hi,

I have 2 databases a.mdb and b.mdb

Is it simple to write a program to copy data from one database to the other.

I would like to use ODBC and standard SQL.

I don't know how to write a program to retreive data from an Access DB.

:0)
 
see in the FAQ, there is a post. Ion Filipski
1c.bmp


filipski@excite.com
 
Thanks,

When I try the example in the FAQ why do I get:
syntax error: 'using'

for the following:

#import "C:\Program Files\Common Files\System\ADO\msado15.dll"
rename_namespace("ADOCG") rename("EOF","EndOfFile")
using namespace ADOCG;

NB. I have used line continuation.
 
I'm confused, what do you mean which error?

I get a syntax error 'using' with the above import statement.


 
are you doing it in .C or in .CPP files? Ion Filipski
1c.bmp


filipski@excite.com
 
I'm using .cpp files.
The import command is in the StdAfx.h file
 
when you compille in the window you should see below you should see compilling results and errors. Could you copy/paste first error in the forum? Ion Filipski
1c.bmp


filipski@excite.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top