D
Deleted member 162737
Guest
Greetings my friends,
can someone help me with this matter?
I have one Table and there is only one row in it (and always will be only one row). This table has multiple columns and one of them is defined as AutoNumber and has random value.
Then I have one form with textbox where can user enter number.
I need help with code, I need to have something like this: if on click entered value from textbox is the same as value in first column (called ID) of the first row of Table (called temporarily), thenn et cetera...
I tried with command DLookup something like this:
Private Sub D001_Click()
If Me.UVKB.Value = DLookup("ID", "Registrovani", ???) Then
DoCmd.Close acForm, 500
DoCmd.OpenForm (0)
End If
End Sub
Maybe the problem is simple, I just started learning VBA?!
Thank you very much everyone in advance!
can someone help me with this matter?
I have one Table and there is only one row in it (and always will be only one row). This table has multiple columns and one of them is defined as AutoNumber and has random value.
Then I have one form with textbox where can user enter number.
I need help with code, I need to have something like this: if on click entered value from textbox is the same as value in first column (called ID) of the first row of Table (called temporarily), thenn et cetera...
I tried with command DLookup something like this:
Private Sub D001_Click()
If Me.UVKB.Value = DLookup("ID", "Registrovani", ???) Then
DoCmd.Close acForm, 500
DoCmd.OpenForm (0)
End If
End Sub
Maybe the problem is simple, I just started learning VBA?!
Thank you very much everyone in advance!