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

test for no data in form

Status
Not open for further replies.

jeffmoore

Programmer
Aug 29, 2003
301
US
I have a form that is opening a second form that has the addnew property set to false. If the user clicks on the button and there is no record for that form it displays a blank form (no controls on it).
Q: Is there an event like the NoData event (in reports) for testing for the above condition.

OR do I have to go thru the process of opening a recordset testing for .eof and .bof.

Just looking to see if there is an elegant way to do this
TIA
Jeff
 
Don't think there is an event that would meet your needs, but might be wrong.

Still performing a simple .bof and .eof or DLookup statement on the command button click wouldn't provide too many difficulties.

Regards,
John
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top