If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
multiselect list box - Allen Brown code
Based on other posting, i referenced the code from
http://allenbrowne.com/tips.html. I am having a problem getting it to work in my query. I created the text box for Report.OpenArgs and i see the results of the strWhere and i also see the results in the Report properties under Filter. The problem is when the report opens there is no data. It acts like the query isn't picking up the string. I know this is general info and i am happy to provide more details but i didn't know if this sounded like a simple fix. I'm sure i'm making a dumb error. Any help would be appreciated. Thanks |
#2
|
|||
|
|||
The article at:
http://allenbrowne.com/ser-50.html describes how to build two strings: - strWhere is the WhereCondition that limits the report; - strDescrip is a description of what the WhereCondition is aiming to do. You have succeeded in passing the description via OpenArgs, but the WhereCondition is resulting in no matching records. Add another text box to the report, and set its Control Source to: =[Report].[Filter] This should show you the WhereCondition. Hopefully you can then determine why this condition returns no values. For example, you could create a query into the same table(s) and paste this WhereCondition into the WHERE clause in SQL View. -- Allen Browne - Microsoft MVP. Perth, Western Australia. Tips for Access users - http://allenbrowne.com/tips.html Reply to group, rather than allenbrowne at mvps dot org. "coachjeffery" wrote in message ... Based on other posting, i referenced the code from http://allenbrowne.com/tips.html. I am having a problem getting it to work in my query. I created the text box for Report.OpenArgs and i see the results of the strWhere and i also see the results in the Report properties under Filter. The problem is when the report opens there is no data. It acts like the query isn't picking up the string. I know this is general info and i am happy to provide more details but i didn't know if this sounded like a simple fix. I'm sure i'm making a dumb error. Any help would be appreciated. Thanks |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
How do I add an area code to a list of phone numbers in Excel? | PPuser | Worksheet Functions | 2 | April 5th, 2005 08:35 PM |
Retrieve ActionSettings via VB | BmlKidd | Powerpoint | 6 | March 30th, 2005 05:33 PM |
Attn Sprinks - clarification on VB code | babs | Using Forms | 6 | December 11th, 2004 12:55 AM |
Allen B - Code to Audit changes | sara | Using Forms | 7 | October 5th, 2004 12:50 PM |