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 A RUNSQL ACTION REQUIRES AN ARGUMENT CONSISTING OF AN SQL STATEMENT
How else would I get the number of the records in the table from the code?
docmd.runsql ("select count (*) as intX from table1"
but vba gives an error A RUNSQL ACTION REQUIRES AN ARGUMENT CONSISTING OF AN SQL STATEMENT
How else would I get the number of the records in the table from the code?