Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Help: Creating dynamic sql queries in excel

Here is a question, and thank you in advance for taking the time to
read and help.

I have an Excel Spreadsheet that I need to auto-populate depending on
the PurchaseOrder number that a user types in.

So PONumber: <Cell here

and that cell's data needs to be the where clause of my sql statement.
When the user enters in the value, the query is executed and popluates
the sheet with the need information in the give places.

I have tried to link in the query with Data-Import External Data-New
Data source and New Data Query. The wizard seems to ask for static
queries, and formatting the data that I query is not to flexable.

Help me out here.

Thanks again.

-Rooster

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 82
Default Help: Creating dynamic sql queries in excel

Go into Data Get External Data New Database Query as before and identify
your data source. When the wizard pops up to select the tables and rows you
want, click 'Cancel' You will be asked if you want to continue editing the
query in MS Query. Click 'Yes'. You should be able to set up a parameter
query in MS Query to retrieve the values you need based on criteria in
certain cells.
--
HTH

JonR


" wrote:

Here is a question, and thank you in advance for taking the time to
read and help.

I have an Excel Spreadsheet that I need to auto-populate depending on
the PurchaseOrder number that a user types in.

So PONumber: <Cell here

and that cell's data needs to be the where clause of my sql statement.
When the user enters in the value, the query is executed and popluates
the sheet with the need information in the give places.

I have tried to link in the query with Data-Import External Data-New
Data source and New Data Query. The wizard seems to ask for static
queries, and formatting the data that I query is not to flexable.

Help me out here.

Thanks again.

-Rooster


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
Problems creating dynamic chart in Excel 2007 Invicta Charts and Charting in Excel 1 November 23rd 08 01:13 PM
Creating/programming an Excel dynamic graph SeqZ Excel Programming 2 May 29th 04 03:12 PM
Dynamic Web Queries Chuck Taylor Excel Programming 1 January 27th 04 04:27 AM
Dynamic Web Queries Matt Day Excel Programming 3 January 27th 04 03:48 AM
Creating a dynamic list John N. Excel Programming 1 January 7th 04 09:23 PM


All times are GMT +1. The time now is 08:49 AM.

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"