skwilliams
Registered User.
- Local time
- Today, 12:50
- Joined
- Jan 18, 2002
- Messages
- 516
I have an unbound form 'frmWeeklyReprints" with an unbound date field "Text150". I also have a query "qryOCParts1" with sum totals based on another query "qryOCParts" to get totals for each day. I'd like to select a date from Text150 and through VBA query qryOCParts1 to pull the matching date. Here's my SQL statement.
strSQL = "SELECT Sum(qryOCParts1.Count) AS SumOfCount " & vbCrLf & _
"FROM qryOCParts1 " & vbCrLf & _
"GROUP BY qryOCParts1.EndOfWeek " & vbCrLf & _
"HAVING (((qryOCParts1.EndOfWeek)=[Text150]));"
strSQL comes up null.
Any ideas??
strSQL = "SELECT Sum(qryOCParts1.Count) AS SumOfCount " & vbCrLf & _
"FROM qryOCParts1 " & vbCrLf & _
"GROUP BY qryOCParts1.EndOfWeek " & vbCrLf & _
"HAVING (((qryOCParts1.EndOfWeek)=[Text150]));"
strSQL comes up null.
Any ideas??