noob question

jackal575

New member
Local time
Today, 14:43
Joined
Feb 12, 2005
Messages
8
how do i lookup the amount of records in a table so that it can be attached to a variable
 
The easiest way is to use the DCount function.

Code:
Dim MyRecCount as Long
MyRecCount = DCount("AFieldName","TableName")

Another way: a recordset. Searching on recordcount here and in your Help file should yield some examples.

Regards,
Tim
 

Users who are viewing this thread

Back
Top Bottom