Lets say I have an employee table with 10 records. I want all the records to
show up in a bounded combox box, but, I want to restrict certain records from
being selectable. I'm not sure how to word this. Thanks!
I have a bounded combox box that pulls records from a table called
tblEmployee that has field names EmployeeID,LastName,FirstName,Current. In
my combo box
I want all records to show, but, don't make those records selectable for
those employees who have, let say, 'No' in the field 'Current'. Thanks.
I have a bounded combox box that pulls records from a table called
tblEmployee that has field names EmployeeID,LastName,FirstName,Current. In
my combo box
I want all records to show, but, don't make those records selectable for
those employees who have, let say, 'No' in the field 'Current'. Thanks.
Private Sub cboEmployee_BeforeUpdate(Cancel as Integer)
If Me.cboEmployee.Column(3) = "No" Then
Msgbox "Sorry, not this one", vbOKOnly
Cancel = True
End If
End Sub
Private Sub cboEmployee_BeforeUpdate(Cancel as Integer)
If Me.cboEmployee.Column(3) = "No" Then
Msgbox "Sorry, not this one", vbOKOnly
Cancel = True
End If
End Sub
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.