Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
MS Query report
I would like to use Excel & MS Query to return data from a database. I have
built a query that works, based upon a static 'contains' criteria - a like '%<criteria%' statement, but what I would like to do is to take the '%<criteria%' from a cell within the excel worksheet. I can return data using the equals command, but cannot get the contains statement to work Can this be done without the use of macros or VB?? Please Help!!!!! |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
MS Query report
Try this: for the criteria in MSQuery use the expression:
Like '%'&[CRITERIA]&'%' Then back in Excel set the parameter to link to the cell - this seems to work for me, at least with the data set I am using. "AndyP" wrote: I would like to use Excel & MS Query to return data from a database. I have built a query that works, based upon a static 'contains' criteria - a like '%<criteria%' statement, but what I would like to do is to take the '%<criteria%' from a cell within the excel worksheet. I can return data using the equals command, but cannot get the contains statement to work Can this be done without the use of macros or VB?? Please Help!!!!! |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Should I save a new query for each report or use the same and modi | Excel Worksheet Functions | |||
Conditional Formatting a Report based on a query | Excel Discussion (Misc queries) | |||
Query and Report Problem | Excel Discussion (Misc queries) | |||
How do I get my dates in a report to export into my query? | Excel Discussion (Misc queries) | |||
VLookup to merge Access Query data into Excel Report | Excel Discussion (Misc queries) |