Hey Guys,
I just need a simple assistance with a delete query. I have a table called tbluser and five columns, ID, racf, username, security, password. When the user selects on a name and then clicks on the delete button. I have this as my code, but I am getting an error for the table name. I believe it is a compile error. Below is my code and I am sure it is something that I am missing.
I do apologize in advance for asking what seems to be small questions, but I am trying to learn and understand it. Thanks
<code>
Dim strSQL As String
strSQL = "DELETE * FROM "tbluser" WHERE username = 'Me.txtusername';"
CurrentDb.Execute strSQL
</code>
I just need a simple assistance with a delete query. I have a table called tbluser and five columns, ID, racf, username, security, password. When the user selects on a name and then clicks on the delete button. I have this as my code, but I am getting an error for the table name. I believe it is a compile error. Below is my code and I am sure it is something that I am missing.
I do apologize in advance for asking what seems to be small questions, but I am trying to learn and understand it. Thanks
<code>
Dim strSQL As String
strSQL = "DELETE * FROM "tbluser" WHERE username = 'Me.txtusername';"
CurrentDb.Execute strSQL
</code>