D
DS
I was helped with this awhile back but of course circumstances changed
so here I am again.
I need to move Info from one Database to another. The first Database
will be split Back End - Front End. I was told to link the tables
that I am backing up to between the 2 databases. Is this still true
even though I will now have a split Database?
Thanks
DS
Dim ws As DAO.Workspace
Dim db As DAO.Database
Dim strSQL As String
On Error GoTo ProcErr
Set ws = DBEngine(0)
ws.BeginTrans
strSQL = "INSERT INTO SalesHistory SELECT * FROM tblChecks"
db.Execute strSQL, dbFailOnError
strSQL = "INSERT INTO SalesDetailsHistory SELECT * FROM
tblCheckDetails"
db.Execute strSQL, dbFailOnError
ws.CommitTrans
Proc_Exit:
On Error Resume Next
Set db = Nothing
Set ws = Nothing
Exit Sub
ProcErr:
ws.Rollback
MsgBox Err.Number & vbCrLf & Err.Description
Resume Proc_Exit
so here I am again.
I need to move Info from one Database to another. The first Database
will be split Back End - Front End. I was told to link the tables
that I am backing up to between the 2 databases. Is this still true
even though I will now have a split Database?
Thanks
DS
Dim ws As DAO.Workspace
Dim db As DAO.Database
Dim strSQL As String
On Error GoTo ProcErr
Set ws = DBEngine(0)
ws.BeginTrans
strSQL = "INSERT INTO SalesHistory SELECT * FROM tblChecks"
db.Execute strSQL, dbFailOnError
strSQL = "INSERT INTO SalesDetailsHistory SELECT * FROM
tblCheckDetails"
db.Execute strSQL, dbFailOnError
ws.CommitTrans
Proc_Exit:
On Error Resume Next
Set db = Nothing
Set ws = Nothing
Exit Sub
ProcErr:
ws.Rollback
MsgBox Err.Number & vbCrLf & Err.Description
Resume Proc_Exit