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

Records Count

Status
Not open for further replies.

phpatrick

Programmer
Jul 9, 2006
72
BE
I know you have recordcount but can I use an sql statement to determine if a query has data (records) or not.

on the event open form he should verify if the query contains more then one record.If yes he should open a form that is normally not visible. Form.visible = true
 
SQL:

Select Count(*) From YourQueryName

This returns the recordcount from your query...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top