Does anyone know how i would get this to work. Searching between 2 input dates. having trouble sorting out the commas and ## etc. ;/
strSQL = "SELECT dbo_HistoricalReport.MessageNo, dbo_HistoricalReport.DateTime, dbo_HistoricalReport.UserName, dbo_HistoricalReport.FCS, dbo_HistoricalReport.KKSCode, dbo_HistoricalReport.Message " & _
"FROM dbo_HistoricalReport " & _
"WHERE dbo_HistoricalReport.DateTime" >= & strStartDate & <= & strEndDate & _
";"