Can someone please tell me why INSERT INTO generates syntax error
Private Sub Command7_Click( )
Dim strUSER As String
strUSER = Nz(DLookup("[user]", "table2", "[user] ='" & username.Value & "'"), "nouser")
If strUSER = "nouser" Then
INSERT INTO table2;
VALUES (username.Value ,password.Value );
MsgBox "User added"
Else
MsgBox "user already exist"
End If
Private Sub Command7_Click( )
Dim strUSER As String
strUSER = Nz(DLookup("[user]", "table2", "[user] ='" & username.Value & "'"), "nouser")
If strUSER = "nouser" Then
INSERT INTO table2;
VALUES (username.Value ,password.Value );
MsgBox "User added"
Else
MsgBox "user already exist"
End If
Comment