Solola
Board Regular
- Joined
- Sep 23, 2003
- Messages
- 73
I have a text box txtYesNo that is populated very simply via VBA code once the field appt_dte is updated:
Private Sub Appt_Dte_AfterUpdate()
If Me.appt_dte > Me.ConfCollDte Then
Me.txtYesNo = "yes"
Else
Me.txtYesNo = "no"
End If
End Sub
If the text box becomes "yes," I want the following option group frmChgRsn to be enabled. Otherwise, I want it disabled. I've entered the following code, but regardless of what txtYesNo says, it always appears enabled, and I can always select options in frmChgRsn.
Private Sub txtYesNo_AfterUpdate()
If Me.txtYesNo.Value = "yes" Then
frmChgRsn.Enabled = True
Else
frmChgRsn.Enabled = False
End If
End Sub
Is it possible I have my option group set up incorrectly? In the option group's properties, should it be set to enabled or disabled? Any idea on why this isn't working? Thanks!
Private Sub Appt_Dte_AfterUpdate()
If Me.appt_dte > Me.ConfCollDte Then
Me.txtYesNo = "yes"
Else
Me.txtYesNo = "no"
End If
End Sub
If the text box becomes "yes," I want the following option group frmChgRsn to be enabled. Otherwise, I want it disabled. I've entered the following code, but regardless of what txtYesNo says, it always appears enabled, and I can always select options in frmChgRsn.
Private Sub txtYesNo_AfterUpdate()
If Me.txtYesNo.Value = "yes" Then
frmChgRsn.Enabled = True
Else
frmChgRsn.Enabled = False
End If
End Sub
Is it possible I have my option group set up incorrectly? In the option group's properties, should it be set to enabled or disabled? Any idea on why this isn't working? Thanks!