Hey guys,
I need help pros.
I have a primary table whith a customerID (PK), also a form with a drop down menu, populated with all customerIDs, and another, secondary table, which is updated by the form in place.
In the secondary table I must not have two records that have the same customerID (customerID is not the primary key in this secondary table, this is the logic of the problem).
How do I create a macro or a procedure that checks if there is a record in the secondary table with the same customerID that has been selected from the form's drop down menu, and forbids the update/insert into this secondary table if this is the case? In other words this form must allow me to enter customer data in the secondary table only once per customerID.
Thank you very much for helping me with this.
I need help pros.

I have a primary table whith a customerID (PK), also a form with a drop down menu, populated with all customerIDs, and another, secondary table, which is updated by the form in place.
In the secondary table I must not have two records that have the same customerID (customerID is not the primary key in this secondary table, this is the logic of the problem).
How do I create a macro or a procedure that checks if there is a record in the secondary table with the same customerID that has been selected from the form's drop down menu, and forbids the update/insert into this secondary table if this is the case? In other words this form must allow me to enter customer data in the secondary table only once per customerID.
Thank you very much for helping me with this.