Hello. I have a main form which has a list of vendors in a combo box. Once the user selects the vendor, and starts keying in order information in the subform, I want the combo box to be locked.
I have tried using the On Got Focus with the following code, but unable to do so. The subform name is frmSUBDOCKET. the combo box is called cboVENDOR and is located on the main form called frmDOCKET.
cboVENDOR has this code attached to it in afterUpdate:
frmSUBDOCKET on Got Focus Code:
The problem is that the combo box doesn't lock. Does anyone have any suggestions?
Thanks in advance,
Brad
I have tried using the On Got Focus with the following code, but unable to do so. The subform name is frmSUBDOCKET. the combo box is called cboVENDOR and is located on the main form called frmDOCKET.
cboVENDOR has this code attached to it in afterUpdate:
Code:
Private Sub fldVENDORID_AfterUpdate()
Me!frmDETAILS.Form!cboPN.Requery
End Sub
Code:
Private Sub Form_GotFocus()
Me.frmDOCKET!fldVENDORID.Locked = False
End Sub
Thanks in advance,
Brad
Last edited: