G
Guest
Hi, I am working on a project. I put a tab control on a form and put 2
subforms (Pretest and posttest form) on a page of the tab control. If user
enters PretestID on the mainform, I want Pretest subform to display, vise
versa.
Here is my code:
Set x = Forms!frmMain!frmPre.Form
Set y = Forms!frmMain!frmPost.Form
Select Case ID
Case "PretestID",
x.visible = True
y.visible = False
Case "PosttestID",
x.visible = False
y.visible = True
But for some reason both( pre,post) form doesn't pop up when I entered
correct ID.
Please helpme!!!
subforms (Pretest and posttest form) on a page of the tab control. If user
enters PretestID on the mainform, I want Pretest subform to display, vise
versa.
Here is my code:
Set x = Forms!frmMain!frmPre.Form
Set y = Forms!frmMain!frmPost.Form
Select Case ID
Case "PretestID",
x.visible = True
y.visible = False
Case "PosttestID",
x.visible = False
y.visible = True
But for some reason both( pre,post) form doesn't pop up when I entered
correct ID.
Please helpme!!!