G
Guest
I'm trying to make a form with several yes/no update fields and have it
display new fields when one of them are marked yes. However, when I try to
run the code, it tells me that the module is not found. I just developed the
form and put in the code on the after update event on the properties sheet
for the various controls and put the same code in the form's current
property. Is there a step I'm missing? The code is as follows:
Private Sub RSP_AfterUpdate()
If [RSP] = True Then
[TRAINING].Visible
[IET_STATUS].Visible
[RSP_SITE].Visible
[REMARKS].Visible
[SHIP_DATE].Visible
[Label29].Visible
[Label30].Visible
[Label31].Visible
[Label32].Visible
[Label33].Visible
Else
[TRAINING].Visible = False
[IET_STATUS].Visible = False
[RSP_SITE].Visible = False
[REMARKS].Visible = False
[SHIP_DATE].Visible = False
[Label29].Visible = False
[Label30].Visible = False
[Label31].Visible = False
[Label32].Visible = False
[Label33].Visible = False
End If
End Sub
Give me an idea of what I'm doing wrong, if you can. any help would be
appreciated. I'm sorry, I'm just beginning with VB Code.
display new fields when one of them are marked yes. However, when I try to
run the code, it tells me that the module is not found. I just developed the
form and put in the code on the after update event on the properties sheet
for the various controls and put the same code in the form's current
property. Is there a step I'm missing? The code is as follows:
Private Sub RSP_AfterUpdate()
If [RSP] = True Then
[TRAINING].Visible
[IET_STATUS].Visible
[RSP_SITE].Visible
[REMARKS].Visible
[SHIP_DATE].Visible
[Label29].Visible
[Label30].Visible
[Label31].Visible
[Label32].Visible
[Label33].Visible
Else
[TRAINING].Visible = False
[IET_STATUS].Visible = False
[RSP_SITE].Visible = False
[REMARKS].Visible = False
[SHIP_DATE].Visible = False
[Label29].Visible = False
[Label30].Visible = False
[Label31].Visible = False
[Label32].Visible = False
[Label33].Visible = False
End If
End Sub
Give me an idea of what I'm doing wrong, if you can. any help would be
appreciated. I'm sorry, I'm just beginning with VB Code.