Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Microsoft Office > Access and Access VBA > Access
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
Access Discussion of Microsoft Access database design and programming. See also the forums for Access ASP and Access VBA.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Access section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old July 12th, 2007, 09:14 PM
Registered User
 
Join Date: Jun 2007
Location: , , .
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default How to display filter criteria in report header??

I need help figuring out how to display filter string criteria in a report header. Right now, I have the filter string displaying foreign key id's instead of the actual descriptive text.

For example, the report header shows the following:

    function_id IN (4,5) AND status_id IN (2,4)

Instead of showing the format above, the end-users are requesting the following format:

    Function IN (Customer Service, Billing) AND Status IN (Open, In Progress)


Any help is greatly appreciated!

Reply With Quote
  #2 (permalink)  
Old July 17th, 2007, 10:42 AM
Registered User
 
Join Date: Jul 2007
Location: , , .
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default

The following is an SQL statement that uses the IN function:

SELECT *
FROM suppliers
WHERE supplier_name in ( 'IBM', 'Hewlett Packard', 'Microsoft');

Now, do you have the actual string data listed in a table with ID's for the strings being the key to another table? Perhaps you could make the SQL statement's IN function include the string arguments instead of their key values?

I'd really need to see the table with the strings stored to make a firm suggestion.

But I am glad to help if I can!

Shane
Reply With Quote
  #3 (permalink)  
Old July 17th, 2007, 12:06 PM
Registered User
 
Join Date: Jun 2007
Location: , , .
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hey, thanks for your reply. I was able to get this issue resolved. See http://p2p.wrox.com/topic.asp?TOPIC_ID=62872 within the Access VBA forum for the full thread.

Do you have any insight on another issue I'm having regarding how to pass filter criteria to a sub report? See http://p2p.wrox.com/topic.asp?TOPIC_ID=62883

Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Enter Criteria Above Header To apply Autofilter stroggo Excel VBA 2 April 16th, 2008 03:35 AM
How to display Filter Strings in Report Header Jabba007 Access VBA 7 July 17th, 2007 12:07 PM
How to pass filter form criteria to a sub report?? Jabba007 Access 0 July 12th, 2007 09:11 PM
Passing Criteria to a Sub Report from Filter Form Jabba007 Access VBA 0 July 11th, 2007 04:56 PM
Multiple criteria for a Report stealthdevil Access VBA 33 June 8th, 2006 10:38 AM



All times are GMT -4. The time now is 08:33 AM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.