Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Excel select 1

Status
Not open for further replies.

Cpreston

MIS
Mar 4, 2015
987
GB
Hi

I have an excel sheet that is linked to our SQL server to a table.

It brings in the data no problem. however what I would like it to do is ask for an order number and then just display the rows that this order number
is in.
I could filter but the table is quite big so it would be easier to prompt for the number.
We link directly into the SQL as windows user authentication, so do not want to use Msquery.

is there a simplistic way to do this in excel without VB coding at all

Thanks
 
Hi,

So on another sheet use MS Query to query the data on the sheet linked to your SQL Server data, using a parameter query that takes data from the cell that the user will fill with the OrderID.
 
I just tried and it keeps saying this data source contains no visible tables, when I link the MS Query connection on sheet 2.

The main sheet is set as a table as far as I can see

Thanks
 
In the Add Tables window of MS Query, click the Options button and check ALL boxes.

Your [Sheet Name$] will appear as table names.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top