andycrfc13
New member
- Local time
- Today, 14:03
- Joined
- Aug 12, 2010
- Messages
- 9
I have tried to enter some code into the NoData event on one of my reports, the code is as follows.
I can run this code and it works fine but when i try to save the report i get an error saying:
"You tried to commit or rollback a transaction without first beginning a transaction"
Does anyone know what the problem may be?
Code:
Private Sub Report_NoData(Cancel As Integer)
MsgBox "No Data"
On Error Resume Next
Cancel = True
End Sub
I can run this code and it works fine but when i try to save the report i get an error saying:
"You tried to commit or rollback a transaction without first beginning a transaction"
Does anyone know what the problem may be?