Hi,
I am using Microsoft Office 2003, but save my Databases in Access 2000 format.
I have a table for user verification. I have a login form which works well. I am trying to make a form to add users, so it doesn't have to be done via the table directly.
I have the following in an unbound form:
User Name (unbound text box)
User Password (unbound text box)
Confirm Password (unbound text box)
User type (bound to a table for looking up)
User Type combo box is bound to column 1 (which is userID - an autonumber), and it then has the text from the lookup field "Administra tor" or "User"
I have the following error when I run the code below:
strSQL = "INSERT INTO t_logon (user_name,user _password,user_ type_text)"
strSQL = strSQL & "VALUES('" & Me.txtLogonName & "',"
strSQL = strSQL & Me.txtConfirm & "',"
strSQL = strSQL & Me.txtLogonType & ");"
CurrentDB.Execu te strSQL
___
I get the error of Run-time error '3075':
Syntax error in string in query expression '123',
I am using Microsoft Office 2003, but save my Databases in Access 2000 format.
I have a table for user verification. I have a login form which works well. I am trying to make a form to add users, so it doesn't have to be done via the table directly.
I have the following in an unbound form:
User Name (unbound text box)
User Password (unbound text box)
Confirm Password (unbound text box)
User type (bound to a table for looking up)
User Type combo box is bound to column 1 (which is userID - an autonumber), and it then has the text from the lookup field "Administra tor" or "User"
I have the following error when I run the code below:
strSQL = "INSERT INTO t_logon (user_name,user _password,user_ type_text)"
strSQL = strSQL & "VALUES('" & Me.txtLogonName & "',"
strSQL = strSQL & Me.txtConfirm & "',"
strSQL = strSQL & Me.txtLogonType & ");"
CurrentDB.Execu te strSQL
___
I get the error of Run-time error '3075':
Syntax error in string in query expression '123',
Comment