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

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.

Forum statistics

Threads
1,223,227
Messages
6,170,849
Members
452,361
Latest member
d3ad3y3

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