title: Getting an "expected: end of statement" error in VBA
body: <p>I am building a login screen in Microsoft Access "username" is what is highlighted after I get the error code. </p>
  
  <p>Here is the code: </p>
  
  <pre><code>Private Sub btnLogin_Click()
      Dim rs As DAO.Recordset
      Dim SQL As String
  
      SQL = "SELECT * FROM Users WHERE * "username = '" + Me.txtUserName + "'"
  
      End With
  
      Set rs = CurrentDb.OpenRecordset(SQL)
  
      If rs.EOF Then
          IncorrectUserNameStyle
          Exit Sub
      End If
  
      End If
  End Sub
  </code></pre>