Hi Experts,
I have a combo box based on a table/query row source.
Me.cboInstallation.RowSource = "SELECT installation FROM MyTable WHERE region = '" & Me.cboRegion & "';"
Me.cboInstallation = Me.cboInstallation.ItemData(0)
The Control Source for cboInstallation is a field called installation.
Now, when I select an item from cboInstallation, make some other changes on the form and close the form the selected installation item is saved as a duplicate record in the database. I understand that it's probably because the selected item appears in the text area of the combo AS WELL AS in the combo list itself...but how to avoid a duplicate record save??? PLEASE HELP ANYONE! Thanks!
I have a combo box based on a table/query row source.
Me.cboInstallation.RowSource = "SELECT installation FROM MyTable WHERE region = '" & Me.cboRegion & "';"
Me.cboInstallation = Me.cboInstallation.ItemData(0)
The Control Source for cboInstallation is a field called installation.
Now, when I select an item from cboInstallation, make some other changes on the form and close the form the selected installation item is saved as a duplicate record in the database. I understand that it's probably because the selected item appears in the text area of the combo AS WELL AS in the combo list itself...but how to avoid a duplicate record save??? PLEASE HELP ANYONE! Thanks!