Docmd.runsql problem

polina

Registered User.
Local time
Today, 15:30
Joined
Aug 21, 2002
Messages
100
I run this code to find out how many records there are in the table

docmd.runsql ("select count (*) as intX from table1")
but vba gives an error.

How else would I get the number of the records in the table from the code?
 
Check the help files for the DCount function for it has lots of options.

= DCount("*", "TableName")

HTH
 

Users who are viewing this thread

Back
Top Bottom