Private Sub Combo37_Change()
Dim X As Integer
X = Me.Combo37
Controls(FirstName) = DLookup("First_Name", "VIPcustomer", "VIPID = & X ")
End Sub
For the dlookup
Y = DLookup("RankID", "staff", "StaffID =" & X)
If Y = 3 Or Y = 4 Then
DoCmd.OpenForm "Jrmenu"
ElseIf Y = 5 Then
DoCmd.OpenForm "Srmenu"
ElseIf Y = 6 Then
DoCmd.OpenForm "Bossmenu"
Else
Msg.Box "Permission Needed", vbCritical...
DoCmd.RunSQL "Update VIPcustomer SET VIPcustomer.Condition = 1 WHERE ((VIPcustomer.VIPID) = &X);"
I have tried different way, it stills shows syntax error.
If IsNull(DLookup("Staff_ID", "Login", "LoginID = '"&Me.ID&"' and Password = '"&Me.PW&"'")) Then
End If
I find a login form example video on the Internet and i change the name of text box and field name
But it shows that there are syntax error.....
SeatCondition = DLookup("Condition", "Play1", "SeatID= & X" And "PlayID= & Y &")
I am not familiar with VBA
Can someone help me
It shows that there are type mismatch