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

append data from a second database

Status
Not open for further replies.

jmnekrkt

Programmer
Feb 21, 2002
47
0
0
US
Using VB 6, I'm trying to append (or import) data from a secure Access 97 database into a secure Access 2k database. They have two different .mdw files. The VB code to set up and access the Access 2k Database is:
DBEngine.SystemDB = "C:\Program Files\Keepers\Time.mdw"
DBEngine.DefaultUser = "TimeUser"
DBEngine.DefaultPassword = "timeuser"
WorkSID = "K" & Text1(0).Text
WhatUser = "TimeUser"
WhatPassword = "timeuser"

Set TimeSpace = Nothing
Set TimeSpace = DBEngine.CreateWorkspace(WorkSID, WhatUser, WhatPassword)
Set TimeIt = TimeSpace.OpenDatabase(WhatDataBase)

do I need to set a new workspace id for the 97 db? can I just write sql statement and pass security info?

Thank you
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top