I can't figure out why a few of my combo boxes are saving the bound column number to the table instead of the data (from the selection table).
For example, on the data entry form users can add up to 3 Layoff Reasons using separate combo boxes whose selections come from tblLayoffReason. A selection in the first combo box works fine; the selection is added to the table. But anything selected in the 2nd & 3rd combo boxes cause the bound column number to be saved to the table instead of the selection data.
These are the 3 combo boxes on frmAddData:
cboLayfReas1
cboLayfReas2
cboLayfReas3
Properties of each cbo:
Column Count = 2
Column Heads = No
Col Width = 0";2"
Bound Column = 1
tblLayoffReason contains the selections available for the combo boxes:
ID Reason
1 Not Reported
2 Company Sold
3 Bankruptcy
4 Financial Trouble
5 Operations Transferred
Iif the user selects "Company Sold" for cboLayfReas1, "Company Sold" ends up in the table. If the user then selects "Bankruptcy" for cboLayfReas2, what is placed in the table is the number "3." Consequently, when users go into edit that record later it shows "3", and all reports show a "3" for Layoff Reason 2 as well. Obviously, I need the actual reason (Bankruptcy) to be displayed.
If the combo box properties are identical, why is the bound column number being saved to the table instead of the text from column 2 of the selection table?
For example, on the data entry form users can add up to 3 Layoff Reasons using separate combo boxes whose selections come from tblLayoffReason. A selection in the first combo box works fine; the selection is added to the table. But anything selected in the 2nd & 3rd combo boxes cause the bound column number to be saved to the table instead of the selection data.
These are the 3 combo boxes on frmAddData:
cboLayfReas1
cboLayfReas2
cboLayfReas3
Properties of each cbo:
Column Count = 2
Column Heads = No
Col Width = 0";2"
Bound Column = 1
tblLayoffReason contains the selections available for the combo boxes:
ID Reason
1 Not Reported
2 Company Sold
3 Bankruptcy
4 Financial Trouble
5 Operations Transferred
Iif the user selects "Company Sold" for cboLayfReas1, "Company Sold" ends up in the table. If the user then selects "Bankruptcy" for cboLayfReas2, what is placed in the table is the number "3." Consequently, when users go into edit that record later it shows "3", and all reports show a "3" for Layoff Reason 2 as well. Obviously, I need the actual reason (Bankruptcy) to be displayed.
If the combo box properties are identical, why is the bound column number being saved to the table instead of the text from column 2 of the selection table?