C
croth68 via AccessMonster.com
I am using a continuous Form which I can print to a report for data viewing.
There is alot of fields on the report and I would like to be able to select
what fields I want to see in the report mainly but can also tie the check
boxes to the form. I have figured out the code to Hide a field from the
continuous form however it still shows up in the report. The table in the
continuous form has a large empty spot after hiding the field I am also
trying to figure out how to make the next field slide over where the hidden
field is so there is not an empty spot. Below is the code I wrote to hide the
field, any help would be appreciated.
Private Sub Check83_Click()
If Check83 = True Then
Me.Dealer_ID.Visible = False
Me.Dealer_ID_Label.Visible = False
'Me.Dealer_Name.CanGrow = True
'Me.Dealer_Name_Label.Can = True
Else
Me.Dealer_ID.Visible = True
Me.Dealer_ID_Label.Visible = True
'Me.Dealer_Name.CanShrink = True
'Me.Dealer_Name_Label.CanShrink = True
End If
There is alot of fields on the report and I would like to be able to select
what fields I want to see in the report mainly but can also tie the check
boxes to the form. I have figured out the code to Hide a field from the
continuous form however it still shows up in the report. The table in the
continuous form has a large empty spot after hiding the field I am also
trying to figure out how to make the next field slide over where the hidden
field is so there is not an empty spot. Below is the code I wrote to hide the
field, any help would be appreciated.
Private Sub Check83_Click()
If Check83 = True Then
Me.Dealer_ID.Visible = False
Me.Dealer_ID_Label.Visible = False
'Me.Dealer_Name.CanGrow = True
'Me.Dealer_Name_Label.Can = True
Else
Me.Dealer_ID.Visible = True
Me.Dealer_ID_Label.Visible = True
'Me.Dealer_Name.CanShrink = True
'Me.Dealer_Name_Label.CanShrink = True
End If