Count Records in DLookup


G

Guest

Is there a way to count the total records in a Dlookup statement for example
I want to use a Dlookup statement in a textbox on a form to count the records
inside of a query.
 
Ad

Advertisements

G

Guest

You should use dcount instead of dlookup

change the word dlookup to dcount, that will return the numbers of record
 
F

fredg via AccessMonster.com

A DLookUp returns the value of just one field in one record.

Use:
=DCount("*","[QueryName]")
to count the total number of records returned by the query.

Fred
 
Ad

Advertisements


Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top