Solved It shows that there are missing operator

hucheunghugo

New member
Local time
Tomorrow, 01:23
Joined
Apr 11, 2022
Messages
23
Code:
Private Sub Combo37_Change()
    Dim X As Integer
    X = Me.Combo37
    Controls(FirstName) = DLookup("First_Name", "VIPcustomer", "VIPID =  & X ")

End Sub
For the dlookup
 
You may want to use the after update event.

Code:
Me.FirstName = DLookup("First_Name", "VIPcustomer", "VIPID =  " &  X )

Code:
Me.FirstName  = DLookup("First_Name", "VIPcustomer", "VIPID =  " &  Me.Combo37 )
 

Users who are viewing this thread

Back
Top Bottom