Expand|Select|Wrap|Line Numbers
- Public MyVar as Integer
Expand|Select|Wrap|Line Numbers
- MyVar= InputBox("Please enter the markup percentage for oursource work.")
- If IsNumeric(MyVar) Then
- If MyVar>= 0 And MyVar< 300 Then
- MsgBox ("Outsourced Markup is stored at " & MyVar& "%")
- Else
- MsgBox ("Please try again.")
- Exit Sub
- End If
- Else
- MsgBox ("Please try again.")
- Exit Sub
- End If
- DoCmd.OpenReport "rptWorkScope", acViewPreview
Expand|Select|Wrap|Line Numbers
- =cost1 * MyVar
Is there a way around this. I tried putting a new field on the form (invisible) that was unbound, and in the On_Open setting
Expand|Select|Wrap|Line Numbers
- NewField = MyVar
Expand|Select|Wrap|Line Numbers
- =cost1 * NewField
I also tried setting the parameter in the On Load event, but still no sucess. Is there a way to refer to the global variable in the calculation?