Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Nodata event 2

Status
Not open for further replies.

romnew

Programmer
Feb 27, 2002
44
ZA
When a report has no data the no data event can be used to give a message that there is no data to report on. When I use this, however, a runtime error 2501 comes up saying "The openreport action was cancelled"
How do I get rid of this dialog coming up.
Your assistance is greatly appreciated
 
Define an error routine in the code from which your report is opened. Trap this partcular error, and when it is encountered, respond with resume next. That will cause this error to be ignored.
 
Snort.......You said file not Excel. OK, you want Excel you got Excel.

Dim exlApp as excel.Appliation

Set exlApp = CreateObject(Excel.application)
exlApp.fileopen( Myfile.xls)

grumble grumble...man says file, he gets file. Man says Excel, he gets Excel. No one is ever happy...Snicker, snort. Have a great day.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top