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 Andrzejek on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

reports

Status
Not open for further replies.

orent

Programmer
Dec 9, 2003
2
IL
hello
i open a report from button code :
docmd.openreport "qry",acPreview
MY QUESTION IS:
how can i know if the record is empty?
what should i write in the code event of the button to know if the report(return record) is empty???
i know that there is in the design of the report 'nodata' event
i want to know if is null from the button code of the form
thanks
 
If you want to know before the report opens, use code like:
If DCount("*","qry") > 0 Then
DoCmd.OpenReport ....
End If

Duane
MS Access MVP
Find out how to get great answers faq219-2884.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top