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!

i have a search in a db...i want to

Status
Not open for further replies.

sparky68

Programmer
Feb 27, 2002
11
0
0
US
i have a search in a db...i want to add on the form "x of y results found"...i have a query that gets search results but how do i get its count? and how do i count the number of records in the table to get the "y" number?
 
Open a DAO recordset on the query, do a MoveLast method call, and then get the number of records it selects from the recordset's RecordCount property.

Open a recordset on the table and do the same. Rick Sprague
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top