scotthutchings
Registered User.
- Local time
- Today, 13:48
- Joined
- Mar 26, 2010
- Messages
- 96
I am trying to adjust my report based on the values chosen by the user. The user can choose whether to see a manufacturer and whether to see opening information (2 fields on the report are affected). Something has gone amiss because it is not working. Here is my code:
The appropriate fields are not visible, but when it runs any of the options to modify the location and width of the Description field, the field does not show up. Any ideas?
Thanks!
Scott
Code:
Private Sub Report_Open(Cancel As Integer)
If Forms![Bid - Vendor Quotes]![Bid - Quote]!optShowMfr = -1 Then
If Forms![Bid - Vendor Quotes]![Bid - Quote]!optShowOpening = -1 Then
'Open full report
Else
'Show Mfr, Hide Openings
Me.Opening.Visible = False
Me.OpeningLabel.Visible = False
Me.QtyPerOpening.Visible = False
Me.QPOLabel.Visible = False
Me.Description.Width = 3.5729
Me.Item_Label.Width = 3.5729
End If
Else
If Forms![Bid - Vendor Quotes]![Bid - Quote]!optShowOpening = -1 Then
'Hide Mfr, Show Opening
Me.Mfr.Visible = False
Me.MfrLabel.Visible = False
Me.Description.Left = 0.6875
Me.Description.Width = 2.5313
Me.Item_Label.Left = 0.6875
Me.Item_Label.Width = 2.5313
Else
'Hid Mfr, Hide Openings
Me.Opening.Visible = False
Me.OpeningLabel.Visible = False
Me.QtyPerOpening.Visible = False
Me.QPOLabel.Visible = False
Me.Mfr.Visible = False
Me.MfrLabel.Visible = False
Me.Description.Left = 0.6875
Me.Description.Width = 4.4063
Me.Item_Label.Left = 0.6875
Me.Item_Label.Width = 4.4063
End If
End If
Thanks!
Scott