efiftythree
IS-IT--Management
I have a query that is breaking and I believe it is because of the data that is going into it. The query picks up info from a text box called txtUser which contains a name formated like: "Doe, John" (remove the "). I assume the , is killing the query. If so, how do I fix that?
Code:
Dim strUsersSQL As String
strUsersSQL = "UPDATE tblUsers " & _
"SET tblUsers.inuse = 1 " & _
"WHERE (((tblUsers.user)=[Forms]![Main]![txtUser]))"
DoCmd.RunSQL strUsersSQL