Enable/Disable Control on Form Open

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

Guest

I have a form called frmGroups. When I open this form in "add" mode, I would
like to disable the cboFindGrp control. When I open this form in "edit"
mode, I would like this control to be enabled.

How do I do this?
 
When you OpenForm add mode, its DataEntry property is True.

Private Sub Form_Open(Cancel As Integer)
Me.frmGroups.Enabled = Not Me.DataEntry
End Sub
 

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

Back
Top