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

Record count

Status
Not open for further replies.

sparky68

Programmer
Feb 27, 2002
11
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?
 
Have you tried the DCount function?
[tt]
intY = DCount("[OrderID]", "Orders", "[ShipRegion] = 'CA'")
[/tt]
hth,
GGleason
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top