strSql = "Select Transactions.[Job Number], Transactions.Initials, Transactions.FCheckOut, Transactions.FInDate " & _
"From Transactions Where Transactions.[FCheckOut] " & _
"Between " & lngFirstOfMonth & " And " & lngLastOfMonth & _
" or Transactions.[FInDate] Between " & lngFirstOfMonth & " And " & lngLastOfMonth & _
" or (Transactions.[FCheckOut] < " & lngFirstOfMonth & _
" and Transactions.[FInDate] > " & lngLastOfMonth & ")" & _
" ORDER BY Transactions.[FCheckOut], " & _
"Transactions.[Job Number];"
it maybe due to the rest of the where statements being missing. If you look at the below i also need the [FCheckOut] Between " & lngFirstOfMonth & " And " & lngLastOfMonth or [FInDate] Between " & lngFirstOfMonth & " And " & lngLastOfMonth or ([FCheckOut] < " & lngFirstOfMonth & " and [FInDate] > " & lngLastOfMonth & "......i am not sure if this would make a difference or if the code should work as you gave me?!
strSql = "Select Transactions.[Job Number], Transactions.Initials, Transactions.FCheckOut, Transactions.FInDate " & _
"From Transactions Where Transactions.[FCheckOut] " & _
"Between " & lngFirstOfMonth & " And " & lngLastOfMonth & _
" or Transactions.[FInDate] Between " & lngFirstOfMonth & " And " & lngLastOfMonth & _
" or (Transactions.[FCheckOut] < " & lngFirstOfMonth & _
" and Transactions.[FInDate] > " & lngLastOfMonth & ")" & _
" ORDER BY Transactions.[FCheckOut], " & _
"Transactions.[Job Number];"
" SELECT Transactions.[Job Number], Transactions.Initials, Transactions.FCheckOut, Transactions.FInDate " & _
" FROM Transactions " & _
" WHERE (((Transactions.Asset)=[Forms]![Reserve]![Asset]) AND (Transactions.[FCheckOut] Between 42826 And 42855)) or (((Transactions.Asset)=[Forms]![Reserve]![Asset]) AND (Transactions.[FInDate] Between 42826 And 42855) or (((Transactions.Asset)=[Forms]![Reserve]![Asset]) AND (Transactions.[FCheckOut] < 42826) and ((Transactions.[FInDate]) > 42855))) " & _
"ORDER BY Transactions.[FCheckOut], Transactions.[Job Number];"