Hi all,
I am using the following lines of code to count the number fo rows in a table but each time I get a error message saying " A RunSQL statement requires an argument consisting of a SQL statement"
Any ideas where I'm going wrong?
I am using the following lines of code to count the number fo rows in a table but each time I get a error message saying " A RunSQL statement requires an argument consisting of a SQL statement"
Any ideas where I'm going wrong?
Code:
sql_count_id = "SELECT COUNT (*) FROM Stalls WHERE event_id = " & Me.cbo_event_choice.Column(0) & " AND booked = true"
DoCmd.RunSQL sql_count_id