Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Microsoft Office > Access and Access VBA > Access
|
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 software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 12th, 2007, 09:14 PM
Registered User
 
Join Date: Jun 2007
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!

 
Old July 17th, 2007, 10:42 AM
Registered User
 
Join Date: Jul 2007
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
 
Old July 17th, 2007, 12:06 PM
Registered User
 
Join Date: Jun 2007
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






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





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.