magicscreen
Programmer
Access 2007
I want to populate a form with fields from a Combo Box.
I have a table that has a contact list with information for an apartment in an apartment house.
I have a second taple that has one record for each apartment in the house that has a problem. There are no duplicate apartments.
I have a query that joins the tblAptProblem table to the tblContact one to one.
I am using this query to populate a Combo Box and want to fill other fields on the form based on the result of the query.
The fields that I am filling on the form are bound to the tables in the join.
If I select a value from the Combo Box and fill the fields on the form in the AfterUpdate event, I get a message telling me that the update could not be performed because it would create a duplicate record in the table.
The Combo Box is bound to the key field [Apartment] in the tblApartment table.
The other fields in the query are bound to the tblContact table.
I think that the [Apartment] field that is bound to the tblApartment table is trying to add a new record which is causing the issue but I am not sure and I don't know how to determine the table causing the issue. I tried to set up Control break but could not stop the issue. When I get the message, I tried to do a Ctrl-Brk but that did not get me back into code.
Any suggestions would be be welcome.
I want to populate a form with fields from a Combo Box.
I have a table that has a contact list with information for an apartment in an apartment house.
I have a second taple that has one record for each apartment in the house that has a problem. There are no duplicate apartments.
I have a query that joins the tblAptProblem table to the tblContact one to one.
I am using this query to populate a Combo Box and want to fill other fields on the form based on the result of the query.
The fields that I am filling on the form are bound to the tables in the join.
If I select a value from the Combo Box and fill the fields on the form in the AfterUpdate event, I get a message telling me that the update could not be performed because it would create a duplicate record in the table.
The Combo Box is bound to the key field [Apartment] in the tblApartment table.
The other fields in the query are bound to the tblContact table.
I think that the [Apartment] field that is bound to the tblApartment table is trying to add a new record which is causing the issue but I am not sure and I don't know how to determine the table causing the issue. I tried to set up Control break but could not stop the issue. When I get the message, I tried to do a Ctrl-Brk but that did not get me back into code.
Any suggestions would be be welcome.