R
reidarT
When I open a report I use a form to limeit the amount of data on the
report.
It could be a date intervall.
I use:
Private Sub Report_Open(Cancel As Integer)
On Error GoTo Report_Open_Err
Dim strDocName As String
'DoCmd.ShowToolbar "Print Preview", acToolbarYes
strDocName = "frmFraTilDato"
blnOpening = True
DoCmd.OpenForm strDocName, , , , , acDialog
blnOpening = False
Report_Open_Exit:
Exit Sub
Report_Open_Err:
MsgBox "You have canceled the action !", vbInformation, conAppMelding
Resume Report_Open_Exit
End Sub
When I click the close button without entering data in the 'frmFraTilDato'
form I get an 'error' where I have to
cancel the parameters in the report-recordsource (Fromdate and ToDate)
How can I just close the report and the form without any questions?
reidarT
report.
It could be a date intervall.
I use:
Private Sub Report_Open(Cancel As Integer)
On Error GoTo Report_Open_Err
Dim strDocName As String
'DoCmd.ShowToolbar "Print Preview", acToolbarYes
strDocName = "frmFraTilDato"
blnOpening = True
DoCmd.OpenForm strDocName, , , , , acDialog
blnOpening = False
Report_Open_Exit:
Exit Sub
Report_Open_Err:
MsgBox "You have canceled the action !", vbInformation, conAppMelding
Resume Report_Open_Exit
End Sub
When I click the close button without entering data in the 'frmFraTilDato'
form I get an 'error' where I have to
cancel the parameters in the report-recordsource (Fromdate and ToDate)
How can I just close the report and the form without any questions?
reidarT