Hello,
I've created the following code (not working)
testSQL= "SELECT Product FROM ...."
If IsNull(DoCmd.RunSQL(testSQL)) Then ...
When my SELECT statement returns no rows, I want my If code to be executed.
But the syntax above is incorrect. How do I fix it?
Thanks in advance
I've created the following code (not working)
testSQL= "SELECT Product FROM ...."
If IsNull(DoCmd.RunSQL(testSQL)) Then ...
When my SELECT statement returns no rows, I want my If code to be executed.
But the syntax above is incorrect. How do I fix it?
Thanks in advance