andycrfc13
08-18-2010, 03:05 AM
I have tried to enter some code into the NoData event on one of my reports, the code is as follows.
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?
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?