Please see code below:
[CODE=vb]strSQL = "SELECT Max(EntryType) AS MaxOfEntryType " & _
"FROM tblForecastData GROUP BY BusinessLine, [Packaging Location], Week " & _
"HAVING ((([Packaging Location])='" & xx & "') AND ((Week)=" & xx & ")) "[/CODE]
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
[CODE=vb]strSQL = "SELECT Max(EntryType) AS MaxOfEntryType " & _
"FROM tblForecastData GROUP BY BusinessLine, [Packaging Location], Week " & _
"HAVING ((([Packaging Location])='" & xx & "') AND ((Week)=" & xx & ")) "[/CODE]
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
Comment