LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Patti
 
Posts: n/a
Default Microsoft Query Help

Carlos, you rule! I've been trying to figure out how to do this FOREVER!
Thanks so much for the tip!

"CarlosAntenna" wrote:

Dave,

I just figured this out for myself last week because I got no answer here.
Maybe I just didn't ask the right question.

In MS Query go into the "Value" field right below the "Criteria Field".
Enter a pair of square brackets with a prompt in between [your prompt here].
Then when the query runs a box pops up asking for the value.

If you want it to refer to a cell in the spreadsheet you can right click
somewhere in your retrieved data then choose "Parameters" from the context
menu. Select "Get Value from Cell" and enter the cell reference.

Carlos

"Dave Y" wrote in message
...
Hello,

I have a Microsoft Query that connects to an Oracle DB and
bring the data results into an Excel spreadsheet. The
query runs fine and brings in the correct data, but my
issue is this; currently the SQL in the query is set to
bring in the data from SYSDATE-1. How can I change things
so that the user can type the desired date in a cell (for
example Cell A1)in the Excel spreadsheet and then click
Refresh Data to bring in the data from that date? There is
no graphical representation for this query so is there a
way for me to reference the cell the date is entered into
in my SQL code? Any help will be greatly appreciated,
thank you.

Dave Y




 
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
Microsoft Query Excel GuRu Excel Discussion (Misc queries) 4 January 19th 05 07:07 PM
Using Microsoft Query data in a pivot table. slapana Charts and Charting in Excel 0 January 11th 05 05:03 PM
Can I download Microsoft Query? Missing software for my Version. Tracie Excel Discussion (Misc queries) 1 January 9th 05 04:11 PM
saving wkbk minus MS Query links Bill_S Excel Discussion (Misc queries) 1 January 3rd 05 06:00 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 10:01 PM.

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

About Us

"It's about Microsoft Excel"