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

Number of Results

Status
Not open for further replies.

soupisgood84

Technical User
Apr 17, 2007
45
US
I was wondering if there was a way to get a number of results in a query.
I am running a query by form and I want to know when it returns 0, or for that matter any number of results. Just wanted to know if there was a easy way to request this.

Thanks in advance.
 
Have a look at the RecordCount property of the DAO.Recordset oject.

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
May also be interested in the functions
Count
DCount
and if using a report
the "NoData" event
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top