Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Excel DB Query Parameter for all values

I my excel file connecting to access via Microsoft Query which is
pulling a table. I have set a filter on a field to get only the item
results I need (one of about 30) and my excel file builds a pretty
report from the data. It works well. Now I need to be able to return
all of the values but I cannot pass a null filter to my query to
return all of the records. I have a drop down in my excel file that
the user can select the filter they want. Right now I have only one
item. I want them to be able to select "All" and the query returns
all records. Also, I'm hoping there is a way to do this without
needing to redo everything in VBA.

My SQL Statement from MS Query:

SELECT tbl_Output_Results.LOB, tbl_Output_Results.SUMMARY_LINE_FLASH,
tbl_Output_Results.ACCOUNT, tbl_Output_Results.SUMMARY_ACCOUNT_NAME,
tbl_Output_Results.DESCRIPTION, tbl_Output_Results.`Jan08 Act`,
tbl_Output_Results.`Feb08 Act`, tbl_Output_Results.`Mar08 Act`,
tbl_Output_Results.`Apr08 Act`, tbl_Output_Results.`May08 Act`,
tbl_Output_Results.`Jun08 Act`, tbl_Output_Results.`Jan08 Plan`,
tbl_Output_Results.`Feb08 Plan`, tbl_Output_Results.`Mar08 Plan`,
tbl_Output_Results.`Apr08 Plan`, tbl_Output_Results.`May08 Plan`,
tbl_Output_Results.`Jun08 Plan`
FROM tbl_Output_Results tbl_Output_Results
WHERE (tbl_Output_Results.LOB=?)
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Parameter query in MS Query from Excel Jimbo Excel Discussion (Misc queries) 1 September 9th 09 04:27 PM
Parameter Query to return multiple values Ruth Excel Discussion (Misc queries) 2 January 3rd 08 12:50 PM
How to choose if I use a parameter or not in a parameter query Arnaud Excel Discussion (Misc queries) 0 March 8th 07 01:19 PM
How to put a parameter into an Excel Query Richard Excel Discussion (Misc queries) 1 January 6th 06 01:41 PM
How to use a Access Query that as a parameter into Excel database query Karen Middleton Excel Discussion (Misc queries) 1 December 13th 04 07:54 PM


All times are GMT +1. The time now is 03:34 AM.

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

About Us

"It's about Microsoft Excel"