Hello, I am trying to see if a combobox is empty, disable that combobox and force user to enter information into an additional form. As of now, I have this:
Code:
Private Sub PartNumbercbo_AfterUpdate() If Me.PONumbercbo = "" Then
Me.WarningLabel.Visible = True
'Me.PONumbercbo.Enabled = False
Else
Me.PONumbercbo.Enabled = True
Me.PONumbercbo.Requery
'Update PONumbercbo
strSourceOne = "SELECT PP.PartPOID, PO.PONumber " & _
"FROM tblPartPO AS PP, tblPOInfo AS PO " & _
"WHERE PartID = " & Me.PartNumbercbo _
& " AND PP.POInfoID = PO.POInfoID " _
& " ORDER BY PO.PONumber"
Debug.Print strSourceOne
Me.PONumbercbo.RowSource = strSourceOne
Me.PONumbercbo = vbNullString
End If
End Sub
but it is not working. The PONumbercbo is staying disabled (which is the default setting for opening the form.