TempVars not working

mveijndh

Registered User.
Local time
Today, 06:32
Joined
Dec 17, 2011
Messages
113
I need a conditional format on a report, depending on the type of quote I want to show or not show some fields. I've programmed a tempVar to achieve this. If I test the value it works fine, but when I run the report I get an error: Can't find the methode or member, what's going wrong here?

Code:
Private Sub Details_Format(Cancel As Integer, FormatCount As Integer)
Dim test As Variant
test = TempVars!tempQuoteType
test = (TempVars!tempQuoteType > 2)
Me.rptTotalCosts.Visible = (TempVars!tempQuoteType > 2)
'Me.rptOverhead.Visible = (TempVars!tempQuoteType > 1)
'Me.rptEquipment.Visible = ((TempVars!tempQuoteType = 1) Or (TempVars!tempQuoteType > 2))
End Sub
Solved it by using the test condition
 
Last edited:

Users who are viewing this thread

Back
Top Bottom