G
Guest
I am trying to the statements BeginTrans, CommitTrans and RollbackTrans to my code with no luck.
I have tried
Dim DAODB as DAO.Database
Dim rst as DAO.Recordset
Dim SQL as string
Set DAODB = CurrentDB
DAODB.BeginTrans
Lots of code update a table several times as follows
SQL = = "SELECT......."
Set rst = mDAODB.OpenRecordSet(SQL, dbOpenDynaset)
rst.Edit
kjdhffjashpuioqsygiuj
rst.Update
rst.close
SQL = = "SELECT......."
Set rst = mDAODB.OpenRecordSet(SQL, dbOpenDynaset)
rst.Edit
kjdhffjashpuioqsygiuj
rst.Update
rst.close
etc
DAODB.Close
I can't seem to get it work and no clue how.
Any help would be appreciated...
Thanks
I have tried
Dim DAODB as DAO.Database
Dim rst as DAO.Recordset
Dim SQL as string
Set DAODB = CurrentDB
DAODB.BeginTrans
Lots of code update a table several times as follows
SQL = = "SELECT......."
Set rst = mDAODB.OpenRecordSet(SQL, dbOpenDynaset)
rst.Edit
kjdhffjashpuioqsygiuj
rst.Update
rst.close
SQL = = "SELECT......."
Set rst = mDAODB.OpenRecordSet(SQL, dbOpenDynaset)
rst.Edit
kjdhffjashpuioqsygiuj
rst.Update
rst.close
etc
DAODB.Close
I can't seem to get it work and no clue how.
Any help would be appreciated...
Thanks