G
Guest
Here is my code:
DoCmd.RunSQL "UPDATE tblPI SET tblPI.Email2 = Date() WHERE
tblPI.Pri_responsible=[txtRptTransfer] AND IsNull(Email2) = True And
User=[txtUser] And ([Email1] < Date() - [Time1]) ;"
It works perfectly except, it updates more than it is supposed to. The
problem is User=[txtUser]. It is not specifically updating based on user.
User is the field in the table and txtUser is a hidden text box on the form
that contains the unique username. Any ideas? Any help is appreciated.
Thanks
DoCmd.RunSQL "UPDATE tblPI SET tblPI.Email2 = Date() WHERE
tblPI.Pri_responsible=[txtRptTransfer] AND IsNull(Email2) = True And
User=[txtUser] And ([Email1] < Date() - [Time1]) ;"
It works perfectly except, it updates more than it is supposed to. The
problem is User=[txtUser]. It is not specifically updating based on user.
User is the field in the table and txtUser is a hidden text box on the form
that contains the unique username. Any ideas? Any help is appreciated.
Thanks