Sorry to have not paid enough attention to your previous post. I see now that you are using Microsoft Access. This is a SQL Server forum. You should post future questions about MS Access SQL in the proper forum - forum701.
In Access you need to delimit the dates with #.
strSQLSelect = "SELECT DailyProduction.[Date], _
" DailyProduction.ClockId, " & _
" AssociateInfo.FirstName, AssociateInfo.LastName, " & _
" TaskCodes.TaskDescription, TaskCodes.UnitOfMeasure, & _
" TaskCodes.TaskCode, TaskCodes.ProductionRate, " & _
" DailyProduction.Cartons, " & _
" DailyProduction.Stops, DailyHours.Hours " & _
" FROM DailyProduction, AssociateInfo," & _
" TaskCodes, DailyHours " & _
" WHERE DailyProduction.ClockId=AssociateInfo.ClockId" & _
" AND DailyProduction.Task = TaskCodes.TaskCode " & _
" AND AssociateInfo.ClockId = DailyHours.ClockId " & _
" AND DailyProduction.[Date] = #" & Calendar1 & "#"
I also noted that DailyProduction was not spelled correctly. I assume that was just an typing error when you posted the query. If not, you'll need to correct the spelling in your program.
I suggest that you not use "Date" as a column name in a database. Date is a keyword and function name. It is good programming practice to avoid using keywords as column, object or variable names.
I would also encourage the use of ANSI style JOIN statements when dealing with SQL. In addition, I personally like to use aliases to shorten the length of queries. Here is the query using ANSI JOINS and aliases.
strSQLSelect = "SELECT dp.[Date], dp.ClockId," & _
" ai.FirstName, ai.LastName, tc.TaskDescription," & _
" tc.UnitOfMeasure, tc.TaskCode, tc.ProductionRate," & _
" dp.Cartons, dp.Stops, dh.Hours" & _
" FROM (((DailyProduction As dp" & _
" INNER JOIN Associateinfo As ai" & _
" ON dp.ClockId=ai.ClockId)" & _
" INNER JOIN TaskCodes As tc" & _
" ON dp.Task = tc.TaskCode)" & _
" INNER JOIN DailyHours As dh" & _
" ON dp.ClockId = dh.ClockId)" & _
" WHERE dp.[Date] = #" & Calendar1 & "#" Terry L. Broadbent
FAQ183-874 contains tips for posting questions in these forums.
NOTE: Reference to the FAQ is not directed at any individual.