E
Edward
I posted this before, but apparently the original post may have confused
some people. My apologies for that.
I have a form called Vendors that is bound to tbl_Vendors. tbl_Vendors is
normalized in that Cities, States, and
Postal Codes all have their own separate tables with a one to many
relationship--each has cascade update to prevent having to requery when
changes are made to an existing record.
My form Vendors has three combo boxes that are tied to the foreign keys in
tbl_Vendors, but the underlying recordset for the combo box display is off
of the parent. Meaning that the display shows the city names from
tbl_cities (etc) even though the actual field is the foreign key in
tbl_Vendors.
On the NOT IN LIST event, I want to trigger a response that forces the user
to say Yes/No about adding a new city/state/zip. On selecting Yes, it will
append the appropriate table (city, state zip) and hopefully move to the
next field.
My problem is not in the response or the execution of the append. It is the
fact that at the moment that it updates tbl_City (for example), the record
DOES append, but the underlying record in frmVendors moves to the next
record rather than to the next field. I have successfully used this same
scenario and code for unbound forms that were for data entry, and I know
they work. My troubleshooting points to the fact that the problem lies with
the fact that frmVendors is bound.
My questions are these:
1) Am I correct in the troubleshooting?
2) Is there a way around this? If so what/how?
3) If not, what are some other suggestions, considering that my data is
small right now, and I cannot guarantee that the move is always to the next
record.
4) Is another way around this possibly using the bookmark/recordest clone?
If so, I have not been able to get that to work successfully, so any help
here would be appreciated.
Many thanks in advance.
Edward
some people. My apologies for that.
I have a form called Vendors that is bound to tbl_Vendors. tbl_Vendors is
normalized in that Cities, States, and
Postal Codes all have their own separate tables with a one to many
relationship--each has cascade update to prevent having to requery when
changes are made to an existing record.
My form Vendors has three combo boxes that are tied to the foreign keys in
tbl_Vendors, but the underlying recordset for the combo box display is off
of the parent. Meaning that the display shows the city names from
tbl_cities (etc) even though the actual field is the foreign key in
tbl_Vendors.
On the NOT IN LIST event, I want to trigger a response that forces the user
to say Yes/No about adding a new city/state/zip. On selecting Yes, it will
append the appropriate table (city, state zip) and hopefully move to the
next field.
My problem is not in the response or the execution of the append. It is the
fact that at the moment that it updates tbl_City (for example), the record
DOES append, but the underlying record in frmVendors moves to the next
record rather than to the next field. I have successfully used this same
scenario and code for unbound forms that were for data entry, and I know
they work. My troubleshooting points to the fact that the problem lies with
the fact that frmVendors is bound.
My questions are these:
1) Am I correct in the troubleshooting?
2) Is there a way around this? If so what/how?
3) If not, what are some other suggestions, considering that my data is
small right now, and I cannot guarantee that the move is always to the next
record.
4) Is another way around this possibly using the bookmark/recordest clone?
If so, I have not been able to get that to work successfully, so any help
here would be appreciated.
Many thanks in advance.
Edward