G
Guest
I'm trying to select one of two subreports I have in an order form, i've
tried using this code:
Private Sub Design_Frame_AfterUpdate()
Const conCatalogue_Button = 1
Const conCustomized_Button = 2
If Me!Design_Frame.Value = conCatalogue_Button Then
Order_Details1_subform.Enabled = True
Order_Details1_subform.Visible = True
Order_Details2_subform.Enabled = False
Order_Details2_subform.Visible = False
Else
Order_Details1_subform.Enabled = False
Order_Details1_subform.Visible = False
Order_Details2_subform.Enabled = False
Order_Details2_subform.Visible = False
End If
If Me!Design_Frame.Value = conCustomized_Button Then
Order_Details1_subform.Enabled = False
Order_Details1_subform.Visible = False
Order_Details2_subform.Enabled = True
Order_Details2_subform.Visible = True
Else
Order_Details1_subform.Enabled = False
Order_Details1_subform.Visible = False
Order_Details2_subform.Enabled = False
Order_Details2_subform.Visible = False
End If
End Sub
Thats to display and enable me use the first subreport and not the second,
if I select the first option and to display and enable the second report and
not the first, if I select the second.
It works with the second option, but the first option can't display the
subreport if it's selected. It displays a blank page, any help? I'm using
[Access 2000 file format], thats Office 2003.
Thank you.
tried using this code:
Private Sub Design_Frame_AfterUpdate()
Const conCatalogue_Button = 1
Const conCustomized_Button = 2
If Me!Design_Frame.Value = conCatalogue_Button Then
Order_Details1_subform.Enabled = True
Order_Details1_subform.Visible = True
Order_Details2_subform.Enabled = False
Order_Details2_subform.Visible = False
Else
Order_Details1_subform.Enabled = False
Order_Details1_subform.Visible = False
Order_Details2_subform.Enabled = False
Order_Details2_subform.Visible = False
End If
If Me!Design_Frame.Value = conCustomized_Button Then
Order_Details1_subform.Enabled = False
Order_Details1_subform.Visible = False
Order_Details2_subform.Enabled = True
Order_Details2_subform.Visible = True
Else
Order_Details1_subform.Enabled = False
Order_Details1_subform.Visible = False
Order_Details2_subform.Enabled = False
Order_Details2_subform.Visible = False
End If
End Sub
Thats to display and enable me use the first subreport and not the second,
if I select the first option and to display and enable the second report and
not the first, if I select the second.
It works with the second option, but the first option can't display the
subreport if it's selected. It displays a blank page, any help? I'm using
[Access 2000 file format], thats Office 2003.
Thank you.