Opengrave
Registered User.
- Local time
- Today, 04:18
- Joined
- Sep 6, 2001
- Messages
- 70
I am having an odd problem. I have a report that has an On Open even procedure that pulls data from a list box (on a form that launches this report) and concatenates several values in the list box into one string called StrClassNames. After that I try to set the ControlSource of a text box in the report called txtClasses to StrClassNames.
The problem is that when I open the report it asks me to input a parameter (like in a parameter query). As part of debugging I went into the VB editor and tured on the immediate window and did a ?StrClassNames and got values as expected, in addition when I mouseover the variable in debug mode I get the values I expect as well. The other odd thing is that the text in the message box that pops up asking for a parameter is always the first row of the StrClassNames.
Can anyone give me direction as to what is going on? Any possible solutions are appreciated.
Code:
Me![txtClassNames].ControlSource = StrClassNames
Can anyone give me direction as to what is going on? Any possible solutions are appreciated.