O
ohlrichar
I am trying to hide a command button if the value of a text box = 0.
The text box recieves values from afterupdate events from optiongroups,
nothing is ever manually entered into this text box.
What I currently have is :
Private Sub AuditTotalDisc_Dirty(Cancel As Integer)
If Me.AuditTotalDisc.Value = "0" Then
Me.Command1496.Visible = False
Else
Me.Command1496.Visible = True
End If
End Sub
I have been able to get this to work if I manually enter the data into the
text box. I have not been able to get it if the number is generated through
the optiongroups. I also tried changing the event to Afterupdate and Change
neither of those worked.
Any ideas of where I went wrong?
Thanks
The text box recieves values from afterupdate events from optiongroups,
nothing is ever manually entered into this text box.
What I currently have is :
Private Sub AuditTotalDisc_Dirty(Cancel As Integer)
If Me.AuditTotalDisc.Value = "0" Then
Me.Command1496.Visible = False
Else
Me.Command1496.Visible = True
End If
End Sub
I have been able to get this to work if I manually enter the data into the
text box. I have not been able to get it if the number is generated through
the optiongroups. I also tried changing the event to Afterupdate and Change
neither of those worked.
Any ideas of where I went wrong?
Thanks