M
Melissa
I am trying to find the maximum date using two criteria and I keep getting a
type mismatch. Here is the code...
x = DMax("DateChange", "tblState", "[State] = '" & strState & "'" And
"[DateChange] <= #" & Format(StartDate, "mm\/dd\/yyyy") & "#")
I declared x as a date and DateChange is set to be a date. The expressions
work seperately but not when I put the AND in. Any suggestions?
type mismatch. Here is the code...
x = DMax("DateChange", "tblState", "[State] = '" & strState & "'" And
"[DateChange] <= #" & Format(StartDate, "mm\/dd\/yyyy") & "#")
I declared x as a date and DateChange is set to be a date. The expressions
work seperately but not when I put the AND in. Any suggestions?