Sorry, I'm sure this is an idiotic question, but I've searched the archives, Access help, etc. and can't seem to figure this simple-seeming thing out.
I've got a report where some of the text is a combination of several fields and spaces and symbols and such, with plenty of conditions.
In the report I can't seem to reference an unbound textbox and set it to something (this would solve my problem), and I can't seem to reference more than one hidden form field (because of focus reference problems), so I've resorted to global variables. I created a new module that looks like this:
It appears that I'm referencing them ok in my form code (setting them to the complex concatenated strings) but I can't seem to reference them in the report -- if I set a textbox's data to "=[Summary1]" it asks for it when I open the report.
Whew. So... How can I reference globals? Or how can I set the value of a textbox on a form to something in code (like in the Open event)? Or how can I reference multiple unbound hidden form fields? Lame questions, I know, but I just can't quite seem to understand these basic referencing issues.
I've got a report where some of the text is a combination of several fields and spaces and symbols and such, with plenty of conditions.
In the report I can't seem to reference an unbound textbox and set it to something (this would solve my problem), and I can't seem to reference more than one hidden form field (because of focus reference problems), so I've resorted to global variables. I created a new module that looks like this:
Code:
Option Compare Database
Global Summary1 As String
Global Summary2 As String
Whew. So... How can I reference globals? Or how can I set the value of a textbox on a form to something in code (like in the Open event)? Or how can I reference multiple unbound hidden form fields? Lame questions, I know, but I just can't quite seem to understand these basic referencing issues.