L
LilC
I have created a red and green radio button. For a quick visual look, I want
to be able to look at the form, which has multiple text boxes, to see if all
the information has been entered. If the text box is empty, the red radio
button is visible from the start. If the text box has the required info.,
the radio button (initial visibility set to false), becomes visible on the
form next to my text box. So, as the information is entered into the text
boxes, the red radio buttons change to green, indicating completed. In the
form current event I'm using
Private Sub Form_Current()
If Len(Nz(Me.FirstName, "")) > 0 Then
rdoRED.Visible = False
rdoGreen.Visible = True
Else
rdoRED.Visible = True
rdoGreen.Visible = False
End If
End Sub
This works fine. My Question, is there an easy way to do this if I have 50
text boxes? Or, do I have to do this same code for each text box? And can I
use the same two radio buttons as my indicators for multiple text boxes or do
I have to copy and rename the bottoms for each text box on my form?
to be able to look at the form, which has multiple text boxes, to see if all
the information has been entered. If the text box is empty, the red radio
button is visible from the start. If the text box has the required info.,
the radio button (initial visibility set to false), becomes visible on the
form next to my text box. So, as the information is entered into the text
boxes, the red radio buttons change to green, indicating completed. In the
form current event I'm using
Private Sub Form_Current()
If Len(Nz(Me.FirstName, "")) > 0 Then
rdoRED.Visible = False
rdoGreen.Visible = True
Else
rdoRED.Visible = True
rdoGreen.Visible = False
End If
End Sub
This works fine. My Question, is there an easy way to do this if I have 50
text boxes? Or, do I have to do this same code for each text box? And can I
use the same two radio buttons as my indicators for multiple text boxes or do
I have to copy and rename the bottoms for each text box on my form?