Hi there,
I have a report that is opened from a command button on a form. There
is a label on the report called lblProvince. I would like to be able to
change that label based on what the user selected on the form.
For instance, if the user selects "Alberta" from lstProvince, and then
the clicks on the command button (cmdNext) to open the report, I would
like the lblProvince.Caption on the report to say "Alberta."
It gets a little trickier than this but I want to understand the basic
way to do this. Where it gets tricker is this:
The user, on the form, can select a report for a Local Office, a
province, or All Of Canada. If the user has checked off "All Of Canada"
then I want the report's title to say "Canada." If the user selects a
province, then I want the title to say that province. The provinces and
local offices are listed in lstLO and lstProvince.
The "If...Then" is begging for some code, and I noticed that the report
has an open event procedure. In this event procedure, how do I check
form controls? What is the syntax?
Also, what property returns the string value of what is selected in a
listbox?
Thanks for any help! As you can tell, I am fairly new to this.
Steven Stewart
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!