T
Tamer
Hi all,
I'm new to the DAO world. Please excuse my limited
knowledge on this.
I'm trying to export a table in an access2k database to
another database form OnClose event procedure of a form,
the way that everytime the form closes, it's underlying
table will be exported to the other database and overwrite
the old table . I used the following code:-
Dim ws As DAO.Workspace
Dim db1 As DAO.Database
Set ws = DBEngine.Workspaces(0)
Set db1 = ws.OpenDatabase("M:\FileName.mdb")
DoCmd.TransferDatabase acLink, "Microsoft Access", _
"M:\SASS2K.mdb", acTable, "Table1", db1
The code returns an error "Run-time error 3024. Could not
find file" in the line of Set db1=
I'm sure the path is correct. Please help
I'm new to the DAO world. Please excuse my limited
knowledge on this.
I'm trying to export a table in an access2k database to
another database form OnClose event procedure of a form,
the way that everytime the form closes, it's underlying
table will be exported to the other database and overwrite
the old table . I used the following code:-
Dim ws As DAO.Workspace
Dim db1 As DAO.Database
Set ws = DBEngine.Workspaces(0)
Set db1 = ws.OpenDatabase("M:\FileName.mdb")
DoCmd.TransferDatabase acLink, "Microsoft Access", _
"M:\SASS2K.mdb", acTable, "Table1", db1
The code returns an error "Run-time error 3024. Could not
find file" in the line of Set db1=
I'm sure the path is correct. Please help