Letting VB dicate the content of a report object

shacket

Registered User.
Local time
Today, 09:37
Joined
Dec 19, 2000
Messages
218
I want to open a report from a module. Depending on some variables within the module, I want the report to say different things.

For example, how do I take a string created in the VB code and use it (write it) in a text box (or label)? Is there a way to create a public variable and then quote it in the report when the report is opened?

Thanks.

Dave
 
You just need an unbound field on your report that displays the value of a global var.
ATTENTION:
1. This var can only be inserted into the control via a function call.
2. If you need different values on different pages then you need to experiment with the On_print events of the detail section.
 

Users who are viewing this thread

Back
Top Bottom