Typically the text of the syntax error message will display the query string that caused the error. I cannnot see that and cannot identify the exact error. A couple of questions if I may. Is this query being executed from the form frmlogdate?<br><br>If it is remove the line "Forms![frmlogdate].[BeginningDate] and replace it with, "[BeginningDate]"<br><br>Is there more than one logfile? If not replace <br>"Forms!frmlogdate!logfile" with the name of the 'logfile' table<br><br>It should now look like this:<br><br>"SELECT * from tblLogFile where" & _ <br>"Initials = """ & [INITIALS] & """ and Beginningdate >=#" & [BeginningDate] & "# and logdate <= #" & [enddate] & "#"<br><br><br>-----------------------------------------------------------<br>If the above two questions are not the case you will have to play with the quotation marks for the two items replacing tblLogFile with the string "Forms![frmlogdate]!Controls.[BeginningDate]"; notice the placement of the dot. The statement extracting null values was removed all together, it's not necessary.<br><br>Alse I noticed the statement <br>"!Initials = """ & Forms![frmlogdate]![INITIALS] & """"<br>this can be misleading '!Initials' is part of a literal string being compared against the value [INTIALS] from the form. If the literal string "!Initials" never matches the literal string [INTIALS] on the form, it'll be ok. It won't cause an error and it also won't be doing what we may think it's doing.<br><br>I'm afraid that I'd have to have the .mdb and see exactly what you want to accomplish to handle this one.<br> <p>Amiel<br><a href=mailto:amielzz@netscape.net>amielzz@netscape.net</a><br><a href= > </a><br>