Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

WithEvents ... As ControlInReportEvents ??

Status
Not open for further replies.

jjlogan

Programmer
Jan 11, 2002
178
US
I have a report that shows a property in Object Browser that is strange and I can't get rid of it: the property is named "myParameter" (this is the name I gave a parameter long time ago) and this property is defined at bottom of browser as "WithEvents myParameter As ControlInReportEvents." I recognize the name myParameter as a parameter I refer to in my code behind the report. But I have 3 other similar parameters handled in the same section of code and there is no listing of these others as WithEvents.... type properties in Object Browser. Here's the problem: this one WithEvents property asks the user for the parameter value and it duplicates another request for same parameter, and no matter what parameter value user provides for this WithEvents, it does not affect the report outcome. Perhaps I set up a parameter in a parameter dialog at one time, maybe for a different report and then it got copied, or .... I really don't understand the parameter dialog feature I guess, and I usually just use a parameter in my source query in brackets ("Like "*" & [Enter something] & "*") and then use same [...] in report for a text box source. Any help on this WithEvents property or parameter dialog feature in general would be appreciated. Jeff
 
Believe I found the solution to double parameter question coming up. I had included separate invisible text boxes in report header and used the value of [query...in brackets] from the query BUT had misspelled a word in my report textbox and therefore Access thought the query on report in brackets was different from bracketed query in query design. Hope no one tried to figure this mess out. But thanks in advance for reading it.
Jeff
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top