mattyhousecat
New Member
- Joined
- Nov 9, 2017
- Messages
- 11
Hey Guys,
I have some SQL code that updates a Schedule table, which is working;
SQL_tblSchedule_Part2 = "UPDATE tblSchedule SET " & _
"tblSchedule.EstName = [forms]![frmChangeEstName]![newEstName]," & _
"tblSchedule.EstState = [forms]![frmChangeEstName]![newState]," & _
"tblSchedule.EstRegion = [forms]![frmChangeEstName]![newRegion] " & _
"WHERE (((tblSchedule.EstNo) = " & tempEstNo & " )" & _
"And (tblSchedule.SchDate) => " & DateFrom & ");"
however on the bottom row "And (tblSchedule.SchDate) => " & DateFrom & ");"
the condition doesnt seem to be working correctly; if I have dates in Oct,Nov and December
and the DateForm value is mid November; the update will change all of the records; regardless of the date condition but I have set it to greater than equal to
can anyone see what im doing wrong?
thanks
I have some SQL code that updates a Schedule table, which is working;
SQL_tblSchedule_Part2 = "UPDATE tblSchedule SET " & _
"tblSchedule.EstName = [forms]![frmChangeEstName]![newEstName]," & _
"tblSchedule.EstState = [forms]![frmChangeEstName]![newState]," & _
"tblSchedule.EstRegion = [forms]![frmChangeEstName]![newRegion] " & _
"WHERE (((tblSchedule.EstNo) = " & tempEstNo & " )" & _
"And (tblSchedule.SchDate) => " & DateFrom & ");"
however on the bottom row "And (tblSchedule.SchDate) => " & DateFrom & ");"
the condition doesnt seem to be working correctly; if I have dates in Oct,Nov and December
and the DateForm value is mid November; the update will change all of the records; regardless of the date condition but I have set it to greater than equal to
can anyone see what im doing wrong?
thanks