Variable declared as Double not recognized in formula
Pawelski_33
Forums
Hi All,
In my piece of code I declare value for IPT rate and then use that variable in the formula (contain within criteria of my IPT_Validation function) however it fails claiming the equation is bad.
CODE:
Function IPT_Validation(MasterDb As Object, UserChoice() As String)
Dim IPTRate As Double
IPTRate = 0.125
'Extracting all data
Set TargetDb = MasterDb
Call Extraction_All_And_Export(TargetDb, "Unusual IPT rate", "@Abs(" & UserChoice(8) & ") <>0.125")
End Function
It only works with value 0.125 in the criteria formula and not with the IPTRate variable declared at the top of the fuction.
How can I twick it please?
What was your original
What was your original equation that wasn't working?
Here is the equation that works for me based on your variables:
"@abs(" & UserChoice(8) & ") <> " & IPTRate