M
mel
I would be very grateful if someone could please clarify the instructions to
my event procedure: I am entering travel reservations into a form and need
to be alerted if the "booking number already exists" and "ok to amend?" so i
want to go to that record to update it, or not "cancel" go to blank/new
record.... this is all i have got!
bngnmbr is the name of the column
bookings is the name of the form
Private Sub bkngnmbr_BeforeUpdate(Cancel As Integer)
Dim iAns As Integer
If IsNullDLookup("[bkngnmbr]", "bookings", "[bkngnmbr] = " & Me.bkngnmbr) Then
iAns = Msgbox("bkng number exists, OK to amend?,& vbCrLf & ") goto"
thanks!
my event procedure: I am entering travel reservations into a form and need
to be alerted if the "booking number already exists" and "ok to amend?" so i
want to go to that record to update it, or not "cancel" go to blank/new
record.... this is all i have got!
bngnmbr is the name of the column
bookings is the name of the form
Private Sub bkngnmbr_BeforeUpdate(Cancel As Integer)
Dim iAns As Integer
If IsNullDLookup("[bkngnmbr]", "bookings", "[bkngnmbr] = " & Me.bkngnmbr) Then
iAns = Msgbox("bkng number exists, OK to amend?,& vbCrLf & ") goto"
thanks!