Question : Run-time error 2501 The OpenReport action was canceled

Experts,
The above run-time error is created after I close a report that has no data. Heres the sequence:
frmAccountingReports

cmdPreview_Click()
Dim pReport as String
pReport = Me.cboNameReport.Column(2)
DoCmd.OpenReport pReport, acViewPreview

In the report NoData event:

MsgBox No Data Found
Cancel = True
DoCmd.Close acForm, frmAccountingReports
DoCmd.OpenForm frmMainMenu

Answer : Run-time error 2501 The OpenReport action was canceled

could it be the service pack? big big posibility

get the fixes

http://support.microsoft.com/kb/945674

http://support.microsoft.com/kb/956722
Random Solutions  
 
programming4us programming4us