G
Guest
I have a vacation home bookings database that uses a form to enter bookings,
using a bookings query. The query is derived from two tables that can be
updated, along with a couple of other reference tables (property details, tax
rates etc.)
The customer and booking tables are related by client key. The form allows
me to enter new customer data and all the booking information, and then
invokes Word and Excel to write confirmations and update the booking
calendars. So far, so good.
The problem arises when I try to add a booking for an existing client. I
enter the client key, and the booking information, but then get a duplicate
key error when I exit the form. If I go into the query view (sheet view)
directly, there is no problem. As most bookings are new business, I've
learned to live with this, but I'd really like to know how to fix the form
(or maybe the query) so that I can enter new bookings for existing customers.
using a bookings query. The query is derived from two tables that can be
updated, along with a couple of other reference tables (property details, tax
rates etc.)
The customer and booking tables are related by client key. The form allows
me to enter new customer data and all the booking information, and then
invokes Word and Excel to write confirmations and update the booking
calendars. So far, so good.
The problem arises when I try to add a booking for an existing client. I
enter the client key, and the booking information, but then get a duplicate
key error when I exit the form. If I go into the query view (sheet view)
directly, there is no problem. As most bookings are new business, I've
learned to live with this, but I'd really like to know how to fix the form
(or maybe the query) so that I can enter new bookings for existing customers.