Hi
Fairly new to using vba in access. The coding was workng fine until i decided to add in a new form text field where user can input a date and return a query where it list all items on and before. The code in red are my new addition.
strSQL = "SELECT qryprintlist.* FROM qryprintlist " & "WHERE qryprintlist.[item_Description] " & stritemStatus & strStatusCondition & "qryprintlist.[Category_Status] " & strcategoryStatus & strOrigCondition & "qryprintlist.[VendorID] " & strOriginator & strvendorCondition & "qryprintlist.[Area_ID] " & strAreaName & " AND " & "qryprintlist.[Date_Initiated] & " <= " & #" & txtDateTo.Value & "# ";"
Thanks