access vba - UPDATE sql not updating -
i'm having issue update sql, reason it's not updating table nomi. i'm not getting type of error. i'm updating table values table me.(...) getting values. when debug.print i'm getting this:
update nomi set workername = 'bob', dateassigned = #5/27/2015 8:52:52 pm#, actiondate = #5/30/2015 11:56:43 am#, caseid = 'bo09999', lastname = 'smith', firstname = 'jane', program = 'awesome', language = 'english', status = 'unprocessed' ((isnull([caseid]))<>false)
here code:
strsql = "update nomi set workername = '" & me.workername & "', dateassigned = #" & me.dateassigned & "#, actiondate = #" & & "#, caseid = '" & me.caseid & "', lastname = '" & me.lastname & "', firstname = '" & me.firstname & "', program = '" & me.program & "', language = '" & me.language & "', status = '" & me.status & "' ((isnull([caseid]))<>false)" currentdb.execute strsql
this:
where ((isnull([caseid]))<>false) basically means:
where caseid null which might not true row in table. if caseid primary key, cannot null.
Comments
Post a Comment