gigifarrow
asked on
Code for greying out the form is not working
The greyed out field is based on the model number that is in a drop down box. Once the model number is selected then certain fields are greyed. In my code I have two model numbers,"A3 BFIST" and "M2A2" then in the code I have two fields one is enabled based on the model number.
Private Sub Form_Current()
If Model = "A3 BFIST" Then
Me.verification.Enabled = True
Else
'The field you want to keep open
Me.doorMod.Enabled = False
End If
If Model = "M2A2" Then
'The field you want to keep open
Me.doorMod.Enabled = False
End If
End Sub
Private Sub Form_Current()
If Model = "A3 BFIST" Then
Me.verification.Enabled = True
Else
'The field you want to keep open
Me.doorMod.Enabled = False
End If
If Model = "M2A2" Then
'The field you want to keep open
Me.doorMod.Enabled = False
End If
End Sub
ASKER
Thank you, I will try it and see if it works.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Seems to be two versions of this currently -
https://www.experts-exchange.com/questions/27676085/Graying-out-fields-based-on-Information.html
Chris B
https://www.experts-exchange.com/questions/27676085/Graying-out-fields-based-on-Information.html
Chris B
gigifarrow,
Did you actually try the solution I posted? Just curious what you found wrong with it.
Also - since you found a solution here, you should delete your original question. EE does not allow duplicate questions.
Did you actually try the solution I posted? Just curious what you found wrong with it.
Also - since you found a solution here, you should delete your original question. EE does not allow duplicate questions.
Open in new window
Open in new window
Open in new window