ChrisLayfield
Registered User.
- Local time
- Today, 11:07
- Joined
- May 11, 2010
- Messages
- 55
I am building a password table that when certain criteria are met, the user must change their password. Everything works which is nice, but this update statement goes bad for some reason. I put a code break on the line of code and everything shows the correct information for the variables, but when I proceed the date entered into the table is 12/30/1899 for some reason. Note when I highlight Date on the code break is shows as 7/9/2010. Any ideas?
Code:
db.Execute "UPDATE tbl_EmployeePasswords " _
& "SET Password = '" & strNewPassword & "'," _
& " CreationDate = " & Format(Date, "Short Date") & " " _
& "WHERE EmployeeID = '" & strUserID & "';"