J
Joan
Hi,
I have a data entry form where the user can add a booking for a litter of
dogs. Breeders call in with the Breed and Whelp Date information and a
booking is added to the Bookings table. The Bookings table has an
auto-number, Booking Number, as it's primary key. Consequently, a new
Booking Number comes up automatically when the user starts adding a new
Booking entry.
What I need my form to do is:
(After the user has entered a record with a Breeder, Breed and [Whelp Date]
that is the same as a record already in the Bookings table), the forms
displays a message saying: "A record with this Breeder,Breed, and [Whelp
Date] is already in the Bookings table. Would you like to add a another
litter with the same [Whelp Date], Breeder, and Breed or edit the existing
record in the table?"
There would be an "Add" button and an "Edit" button on this dialog form
also, where if the user selects "Add" , it will let him finish adding the
record. If the user clicks "Edit", the EditBooking form opens at the
desired record.
How do I code the AfterUpdate event of the [Whelp Date] textbox to do this?
I haven't yet done anything like this.
Joan
I have a data entry form where the user can add a booking for a litter of
dogs. Breeders call in with the Breed and Whelp Date information and a
booking is added to the Bookings table. The Bookings table has an
auto-number, Booking Number, as it's primary key. Consequently, a new
Booking Number comes up automatically when the user starts adding a new
Booking entry.
What I need my form to do is:
(After the user has entered a record with a Breeder, Breed and [Whelp Date]
that is the same as a record already in the Bookings table), the forms
displays a message saying: "A record with this Breeder,Breed, and [Whelp
Date] is already in the Bookings table. Would you like to add a another
litter with the same [Whelp Date], Breeder, and Breed or edit the existing
record in the table?"
There would be an "Add" button and an "Edit" button on this dialog form
also, where if the user selects "Add" , it will let him finish adding the
record. If the user clicks "Edit", the EditBooking form opens at the
desired record.
How do I code the AfterUpdate event of the [Whelp Date] textbox to do this?
I haven't yet done anything like this.
Joan