M
mot98
Hi All,
I have a M.S Access query that I am trying to use a variable to pull
current data, so in the criteria of the specific field. I am using the
Select Case command to populate the variable.
The code looks the following:
Select Case format(Time(),'hh:mm')
Case '"23:00' to "07:00"'
3
Case '"07:00" to "15:00"'
2
Case '"15:00" to "23:00"'
End Select
However I am getting the following error: "The syntax of the subquery
in this expression is incorrect. Check the subquerys syntax and enclose
the subquery in parenthese"
I have a M.S Access query that I am trying to use a variable to pull
current data, so in the criteria of the specific field. I am using the
Select Case command to populate the variable.
The code looks the following:
Select Case format(Time(),'hh:mm')
Case '"23:00' to "07:00"'
3
Case '"07:00" to "15:00"'
2
Case '"15:00" to "23:00"'
End Select
However I am getting the following error: "The syntax of the subquery
in this expression is incorrect. Check the subquerys syntax and enclose
the subquery in parenthese"