Ok, I'm trying to get a text box to only become enabled if a particular selection is made in an option group on the same form.
Here's the details...
OptionGroup = PaymentTypeOptions
Option1 = Cash
Option2 = Check
Option3 = Money Order
OptionGroup updates field "Payment Type" in table "Payments".
I have text box "Check#" that I only want enabled if option2 is selected.
I tried to do it this way but it doesn't do anything.
Private Sub PaymentTypeOptions_AfterUpdate()
If PaymentTypeOptions.Value = 2 Then
Check#.Enabled = True
Else
Check#.Enabled = False
End If
End Sub
Not sure if this is the correct way of doing this.
Any help would be appreciated.
Thanks in advance,
Troy1977
Here's the details...
OptionGroup = PaymentTypeOptions
Option1 = Cash
Option2 = Check
Option3 = Money Order
OptionGroup updates field "Payment Type" in table "Payments".
I have text box "Check#" that I only want enabled if option2 is selected.
I tried to do it this way but it doesn't do anything.
Private Sub PaymentTypeOptions_AfterUpdate()
If PaymentTypeOptions.Value = 2 Then
Check#.Enabled = True
Else
Check#.Enabled = False
End If
End Sub
Not sure if this is the correct way of doing this.
Any help would be appreciated.
Thanks in advance,
Troy1977