A Microsoft Office (Excel, Word) forum. OfficeFrustration

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.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

multiselect list box - Allen Brown code



 
 
Thread Tools Display Modes
  #1  
Old April 6th, 2005, 09:29 PM
coachjeffery
external usenet poster
 
Posts: n/a
Default 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  
Old April 7th, 2005, 05:07 PM
Allen Browne
external usenet poster
 
Posts: n/a
Default

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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

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


All times are GMT +1. The time now is 05:32 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.