I am entering dates in to form using the dd/mm/yy format, however I am
using a SQL which involves searching for those dates. I have formatted
the dates in the SQL ot the US format of mm/dd/yy as follows -
strSearch = "Select * FROM tblReservations where [RoomNo] = " &
F![tblTemp]![RoomNo] _
& " AND [BeginDate] >= #" & Format(F![tblTemp]![Outdate],
"mm/dd/yy") & "# " _
& " OR [EndDate] <= #" & Format(F![tblTemp]![Indate], "mm/dd/yy") &
"#;"
There appears to be a conflict when I use the SQL statement. What
should I be doing?
I havethe regional setting on dd/mm/yy. Does this make a difference.
This is driving me bonkers.... far more than usual.
TIA - Ray
using a SQL which involves searching for those dates. I have formatted
the dates in the SQL ot the US format of mm/dd/yy as follows -
strSearch = "Select * FROM tblReservations where [RoomNo] = " &
F![tblTemp]![RoomNo] _
& " AND [BeginDate] >= #" & Format(F![tblTemp]![Outdate],
"mm/dd/yy") & "# " _
& " OR [EndDate] <= #" & Format(F![tblTemp]![Indate], "mm/dd/yy") &
"#;"
There appears to be a conflict when I use the SQL statement. What
should I be doing?
I havethe regional setting on dd/mm/yy. Does this make a difference.
This is driving me bonkers.... far more than usual.
TIA - Ray
Comment