peterbowles
Registered User.
- Local time
- Today, 15:04
- Joined
- Oct 11, 2002
- Messages
- 163
This is the code
If Me.Textbox1 = IDnumber (Value in the table) Then
Me.Text50 = "Hello" & DLookup("Name", "passcode", "IDNumber
= '" & Me.password & "'")
Me.Command6.Visible = True
Me.Command7.Visible = True
Me.Command8.Visible = True
Me.Command9.Visible = True
Me.Command10.Visible = True
Me.Command19.Visible = True
Else: Me.textbox1 = "Invalid Number"
End If
End Sub
The problem is that it only returns a value if the ID number in the textbox is the same as the current record on the form . It does not look through the whole table
Why?
Any help would be great
Thanks
If Me.Textbox1 = IDnumber (Value in the table) Then
Me.Text50 = "Hello" & DLookup("Name", "passcode", "IDNumber
= '" & Me.password & "'")
Me.Command6.Visible = True
Me.Command7.Visible = True
Me.Command8.Visible = True
Me.Command9.Visible = True
Me.Command10.Visible = True
Me.Command19.Visible = True
Else: Me.textbox1 = "Invalid Number"
End If
End Sub
The problem is that it only returns a value if the ID number in the textbox is the same as the current record on the form . It does not look through the whole table
Why?
Any help would be great
Thanks