Background:
I am using Excel 2003
I have 2 Excel files (Source, list), one is essentially my source data. The second is where I am using the excel "Import External data" function to get the data in teh second sheet. I am then using the modifiy query to allow me to use SQL to query my data and limit the data I am displaying.
My SQL query:
SELECT *
FROM ['Master List$']
WHERE [Name] Like "Brent%";
My question is this, I would like to have the cell A1 to be an input into my query. So in A1 I would like to have "Brent" to replace the first WHERE
condition.
I am hoping to find something to that I will be able to change one cell and be able to refresh the data for whatever is in Cell A1.
Anyone have an idea?
Thanks.
My Connection String is this:
Provider=Microsoft.Jet.OLEDB.4.0;User ID=Admin;
Data Source=C:\My Data\Master List\Master List.xls;
Mode=Share Deny Write;Extended Properties="HDR=YES;";
Jet OLEDB:System database="";Jet OLEDB:Registry Path="";
Jet OLEDB:Engine Type=35;Jet OLEDB:Database Locking Mode=0;
Jet OLEDB:Global Partial Bulk Ops=2;
Jet OLEDB:Global Bulk Transactions=1;
Jet OLEDB:New Database Password="";
Jet OLEDB:Create System Database=False;
Jet OLEDB:Encrypt Database=False;
Jet OLEDB:Don't Copy Locale on Compact=False;
Jet OLEDB:Compact Without Replica Repair=False;
Jet OLEDB:SFP=False