I'm trying to set up a combobox on the subform that will let a user choose one of multiple values (value from Auth Numbers Query) and when the record is entered it fills a field in tblAuthorization via Authorizations Query.
I can get the combobox to display the correct information, but I have issues on the record entry.
Combobox info:
Control Source quAuthorizations.AuthNumber
Row Source SELECT quAuthNumbers.AuthNumber FROM quAuthNumbers WHERE (((quAuthNumbers.ConsumerID)=[Forms]![frmConsumers]![ConsumerID]));
Row Source Type Table/Query
Bound Column 1
One of 2 things happen, depending on set up.
1) if quAuthorizations.AuthNumber is from tblAuthNumbers.AuthNumber, I get an error saying "The changes you requested to the table were not successful because they would create duplicate values...*
*If I allow duplicates on tblAuthNumbers.AuthNumber, it will add new record with a duplicate AuthNumber, and on tblAuthorizations it will add a new record with a new AuthInstanceID (PK), but it will not input the related AuthNumberID (fk) or AuthNumber (it leaves them blank).
2) if quAuthorizations.AuthNumber is from tblAuthorizations.AuthNumber, I get an error saying "You must enter a value in the tblAuthNumbers.AuthNumber field."
Ideal behavior should be add record to tblAuthorizations.AuthNumberID (fk) from tblAuthNumbers.AuthNumberID (pk) by selecting tblAuthNumbers.AuthNumber in a combobox on the a subform whose control source is quAuthorizations.
I hope like hell that makes sense and someone can help.
I can get the combobox to display the correct information, but I have issues on the record entry.
Combobox info:
Control Source quAuthorizations.AuthNumber
Row Source SELECT quAuthNumbers.AuthNumber FROM quAuthNumbers WHERE (((quAuthNumbers.ConsumerID)=[Forms]![frmConsumers]![ConsumerID]));
Row Source Type Table/Query
Bound Column 1
One of 2 things happen, depending on set up.
1) if quAuthorizations.AuthNumber is from tblAuthNumbers.AuthNumber, I get an error saying "The changes you requested to the table were not successful because they would create duplicate values...*
*If I allow duplicates on tblAuthNumbers.AuthNumber, it will add new record with a duplicate AuthNumber, and on tblAuthorizations it will add a new record with a new AuthInstanceID (PK), but it will not input the related AuthNumberID (fk) or AuthNumber (it leaves them blank).
2) if quAuthorizations.AuthNumber is from tblAuthorizations.AuthNumber, I get an error saying "You must enter a value in the tblAuthNumbers.AuthNumber field."
Ideal behavior should be add record to tblAuthorizations.AuthNumberID (fk) from tblAuthNumbers.AuthNumberID (pk) by selecting tblAuthNumbers.AuthNumber in a combobox on the a subform whose control source is quAuthorizations.
I hope like hell that makes sense and someone can help.