gRegulator
Technical User
Hi,
I have a Report named 'Clinic: Adult Cardiology'. When the report is opened, the user is prompted for parameters specifying the beginning and ending dates of the study period, in a form named frmParameter8. The names of the combo boxes in which the parameters are input are cboBegin (for beginning date) and cboEnd (for ending date). I have decided to include on the form, a label and text control which I would like to be visible when there is input in the date parameters, but to be invisible when these parameters are left null. I have placed this code in the On Activate option of my report, but the problem is that it keeps both controls invisible all the time. Does anyone know what may be the problem? Thanks!!
Private Sub Report_Activate()
DoCmd.Maximize
Label21.Visible = False
Text33.Visible = False
Select Case Forms!frmParameter8!cboBegin
Case Not Null
Label21.Visible = True
Text33.Visible = True
Case Else
Label21.Visible = False
Text33.Visible = False
End Select
End Sub
I have a Report named 'Clinic: Adult Cardiology'. When the report is opened, the user is prompted for parameters specifying the beginning and ending dates of the study period, in a form named frmParameter8. The names of the combo boxes in which the parameters are input are cboBegin (for beginning date) and cboEnd (for ending date). I have decided to include on the form, a label and text control which I would like to be visible when there is input in the date parameters, but to be invisible when these parameters are left null. I have placed this code in the On Activate option of my report, but the problem is that it keeps both controls invisible all the time. Does anyone know what may be the problem? Thanks!!
Private Sub Report_Activate()
DoCmd.Maximize
Label21.Visible = False
Text33.Visible = False
Select Case Forms!frmParameter8!cboBegin
Case Not Null
Label21.Visible = True
Text33.Visible = True
Case Else
Label21.Visible = False
Text33.Visible = False
End Select
End Sub