Enable a combo box if

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have a combo box That I would like to enable if certain fields in my form
have been entered e.g., the text fields -Name, Address, combo boxes-source of
information, reason of application and finaly at least one of the checkboxes
should be selected.

The checkboxes have a tag in them already....
 
I have a combo box That I would like to enable if certain fields in my form
have been entered e.g., the text fields -Name, Address, combo boxes-source of
information, reason of application and finaly at least one of the checkboxes
should be selected.

The checkboxes have a tag in them already....

You can use the Form's Current event to check the values in fields and
set the Enabled property of the combo box appropriately. Your posted
criteria are a bit vague so I can't suggest the exact syntax, but it
might be something like

Private Sub Form_Current()
If Me.NewRecord Then
<set the enabled property appropriately for new records>
Else
If IsNull(Me!txtName) Or IsNull(Me!txtAddress) Then
<do something>
Else
<do something else>
End If
End If
End Sub


John W. Vinson[MVP]
 

Ask a Question

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.

Ask a Question

Similar Threads


Back
Top