J
Joanne
Hello,
I have a form with a tree view in it. The user can pick from among 10
choices. Once they make their choice I assign a string variable (strText)
within a case statement. The string variable may have a value of
"Parties-Appellant", "Parties Respondent", etc. Right now I am just testing
with the one value of "Parties appellant. The form opens a report and runs a
SQL select statement, part of which is the vtext value. This works fine.
It's just when I want to put the value of vtext into the report header that
it isn't working. I have an unbound text box in the header and I am using
the following function in a public module to set the value of vtext:
Public Function GetMyVar() As Variant
GetMyVar = MyVar
End Function
Then I put the following as the control source of the textbox, but when the
report runs it prompts me for a parameter value, so it's obviously not
getting the value of vtext. Thanks so much for any help.
=GetMyVar()
I have a form with a tree view in it. The user can pick from among 10
choices. Once they make their choice I assign a string variable (strText)
within a case statement. The string variable may have a value of
"Parties-Appellant", "Parties Respondent", etc. Right now I am just testing
with the one value of "Parties appellant. The form opens a report and runs a
SQL select statement, part of which is the vtext value. This works fine.
It's just when I want to put the value of vtext into the report header that
it isn't working. I have an unbound text box in the header and I am using
the following function in a public module to set the value of vtext:
Public Function GetMyVar() As Variant
GetMyVar = MyVar
End Function
Then I put the following as the control source of the textbox, but when the
report runs it prompts me for a parameter value, so it's obviously not
getting the value of vtext. Thanks so much for any help.
=GetMyVar()