I have 3 comboboxes on my form; ContractNum, TaskOrder and CLIN. When I select a ContractNum or TaskOrder and then reselect a new one the selection updates in the combobox and the associated fields.
MY PROBLEM: When I select a CLIN for the first time it displays in the combobox correctly as well as the associated fields. HOWEVER, when I change the selection in the CLIN combobox it is not updating but the associated fields are.
Not sure why this is happening!!
I tried adding a Me.cboCLIN.Requery as the first line and then as the last line of the cboCLIN_Click(). I also tried to add this code to an Events Procedure in After Update. Not of these worked.
Code:Private Sub cboContractNum_Click() Me.cboContractNum = Me.cboContractNum.Column(0) Me.txtContractor = Me.cboContractNum.Column(1) Me.txtNameofMATO = Me.cboContractNum.Column(2) Me.cboTaskOrder.Requery Me.cboCLIN.Requery End Sub Private Sub cboTaskOrder_Click() Me.txtTOStartDate = Me.cboTaskOrder.Column(1) Me.txtTOEndDate = Me.cboTaskOrder.Column(2) Me.txtMTFDTF = Me.cboTaskOrder.Column(3) Me.txtCOR = Me.cboTaskOrder.Column(4) Me.cboCLIN.Requery End Sub Private Sub cboCLIN_Click() Me.txtLaborBand = Me.cboCLIN.Column(3) Me.txtLaborCat = Me.cboCLIN.Column(4) Me.txtSiteofService = Me.cboCLIN.Column(5) Me.txtClinicalArea = Me.cboCLIN.Column(6) Me.txtIndCov = Me.cboCLIN.Column(7) If Me.txtIndCov = "Individual" Then Me.txtCovHours.Enabled = False Me.txtIndHours.Enabled = True Else If Me.txtIndCov = "Coverage" Then Me.txtIndHours.Enabled = False Me.txtCovHours.Enabled = True Else If Me.txtIndCov = "" Then Me.txtIndHours.Enabled = True Me.txtCovHours.Enabled = True Else If Me.txtIndCov = "Service Only" Then Me.txtIndHours.Enabled = False Me.txtCovHours.Enabled = False Me.txtIndCov.SetFocus End If End If End If End If End Sub