N
Nadnerb78
Please see code below:
strSQL = "SELECT Max(EntryType) AS MaxOfEntryType " & _
"FROM tblForecastData GROUP BY BusinessLine, [Packaging Location],
Week " & _
"HAVING ((([Packaging Location])='" & xx & "') AND ((Week)=" & xx &
")) "
I don't understand why I am receiving the following error:
Run-time error '3075':
Extra ) in query expression '((([Packaging Location])=") AND
((Week)=))'.
If I remove the ('s I receive an error stating that there are
(operators missing). Is there anything obviously wrong someone would
please point out to me?
Thank you,
Nadnerb
strSQL = "SELECT Max(EntryType) AS MaxOfEntryType " & _
"FROM tblForecastData GROUP BY BusinessLine, [Packaging Location],
Week " & _
"HAVING ((([Packaging Location])='" & xx & "') AND ((Week)=" & xx &
")) "
I don't understand why I am receiving the following error:
Run-time error '3075':
Extra ) in query expression '((([Packaging Location])=") AND
((Week)=))'.
If I remove the ('s I receive an error stating that there are
(operators missing). Is there anything obviously wrong someone would
please point out to me?
Thank you,
Nadnerb