W
Wayne-I-M
Hi
9'15pm - too late for this (but got to sort it beore metting in the AM. Oh
dear.
Usng a Dlookup to check for existing records - no problems there. How would
I include the ID field in the message box if Dlookup finds a matching record.
So I can use this to DoCmd.OpenForm filtered (I can do this bit - it's just
the message I can't work out - too late ya see - mind numb)
Any help would get me a night's sleep
Private Sub SomeButton_Click()
If ((Dlookup goes here) Then
MsgBox "This person may have a record number XXXX", vbOKOnly, "New Booking
checker"
Else
MsgBox "No matching records", vbOKOnly, "New Booking checker"
End If
End Sub
The XXXX is the where i need the ID field from the table. The vbOkOnly will
not be there - just for example (thats the open form bit)
9'15pm - too late for this (but got to sort it beore metting in the AM. Oh
dear.
Usng a Dlookup to check for existing records - no problems there. How would
I include the ID field in the message box if Dlookup finds a matching record.
So I can use this to DoCmd.OpenForm filtered (I can do this bit - it's just
the message I can't work out - too late ya see - mind numb)
Any help would get me a night's sleep
Private Sub SomeButton_Click()
If ((Dlookup goes here) Then
MsgBox "This person may have a record number XXXX", vbOKOnly, "New Booking
checker"
Else
MsgBox "No matching records", vbOKOnly, "New Booking checker"
End If
End Sub
The XXXX is the where i need the ID field from the table. The vbOkOnly will
not be there - just for example (thats the open form bit)