HillTJ
To train a dog, first know more than the dog..
- Local time
- Yesterday, 21:19
- Joined
- Apr 1, 2019
- Messages
- 731
See query below; It doesn't Run due to a syntax error. I've split it into chunks and each chunk builds the string properly, but upon recombining. Doesn't work! Appreciate it.
CurrentDb.Execute "INSERT INTO MsysUsers (FirstName, LastName,PWD, PWDDate)" & _
" SELECT '" & Me.[txtFirstName] & "' AS firstName,'" & Me.[txtLastName] & "' AS LastName,'" & Me.[txtPWD] & "' AS PWD,'" & "#" & Format(dtePWDDate, "mm/dd/yyyy") & "#" & "' AS PWDDate,'"
CurrentDb.Execute "INSERT INTO MsysUsers (FirstName, LastName,PWD, PWDDate)" & _
" SELECT '" & Me.[txtFirstName] & "' AS firstName,'" & Me.[txtLastName] & "' AS LastName,'" & Me.[txtPWD] & "' AS PWD,'" & "#" & Format(dtePWDDate, "mm/dd/yyyy") & "#" & "' AS PWDDate,'"