Populating Query Criteria from Excel

apeleg

New Member
Joined
Apr 20, 2015
Messages
1
Hi there I have the following Query and I want the user to enter Start Date in Excel that will trigger the Query.
is it possible to it?

SELECT Problems_ProblemLog.EntryNo, Problems_ProblemLog.RejectID, Problems_ProblemLog.ProblemDescription, Problems_ProblemLog.ActionDescription, Problems_ProblemLog.EDA, Problems_ProblemLog.StartDate, Problems_ProblemLog.PartSNOriginal, Problems_ProblemLog.PartSNNew, Problems_ProblemLog.InstrumentNo, Problems_ProblemLog.PartIDEntry, Problems_ProblemLog.ProblemID, Problems_ProblemLog.ActionID, Problems_ProblemLog.Comment, Problems_ProblemLog.FixID, Problems_ProblemLog.UserID, Problems_ProblemLog.MoreComment
FROM {oj XTestPlus.dbo.Problems_ProblemLog Problems_ProblemLog LEFT OUTER JOIN XTestPlus.dbo.Instruments_Instrument Instruments_Instrument ON Problems_ProblemLog.InstrumentNo = Instruments_Instrument.InstrumentNo}
WHERE (Instruments_Instrument.ModelID In (5,6,7,9,10,60,61,62,54,65,26,25,23)) AND (Problems_ProblemLog.StartDate>{ts '2014-09-01 00:00:00'})

in other words, I would like the query to take the date from a cell in an excel table.

any help would be appreciated!

thanks,

Anat
 

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.

Forum statistics

Threads
1,214,958
Messages
6,122,475
Members
449,087
Latest member
RExcelSearch

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top