Can anyone help me with the following please?
I'm trying to count the number of records in a table and use this calculated value elsewhere in my module. I have been using the 'SELECT Count (*)...FROM' statement, but when I use the DoCmd.RunSQL on the query it complains that it's invalid. This is because I have to use a temporary table to store the counted value. (and use the command SELECT Count * INTO....FROM)
Is there a way of getting around this so that I don't have to use temporary tables?
Thanks in advance,
Ranj.
I'm trying to count the number of records in a table and use this calculated value elsewhere in my module. I have been using the 'SELECT Count (*)...FROM' statement, but when I use the DoCmd.RunSQL on the query it complains that it's invalid. This is because I have to use a temporary table to store the counted value. (and use the command SELECT Count * INTO....FROM)
Is there a way of getting around this so that I don't have to use temporary tables?
Thanks in advance,
Ranj.