J
JulieD
hi all
i'm trying to run an update query (coded) from a form button and am having
trouble with the code.
Set dbs = CurrentDb
strsql = "UPDATE TBL_Jobs SET Invoiced? = true WHERE CustomerID = '"
& custid & "' and " _
& DateWork = "between #" & invperstart & "# and #" & invperend & "#"
the problem (as far as i can tell) is with the "DateWork" criteria - i just
can't seem to get the syntax correct.
would appreciate any advice (PS i'm in Australia so our date formats are
dd/mm/yyyy which might be contributing to the problem).
Cheers
JulieD
i'm trying to run an update query (coded) from a form button and am having
trouble with the code.
Set dbs = CurrentDb
strsql = "UPDATE TBL_Jobs SET Invoiced? = true WHERE CustomerID = '"
& custid & "' and " _
& DateWork = "between #" & invperstart & "# and #" & invperend & "#"
the problem (as far as i can tell) is with the "DateWork" criteria - i just
can't seem to get the syntax correct.
would appreciate any advice (PS i'm in Australia so our date formats are
dd/mm/yyyy which might be contributing to the problem).
Cheers
JulieD