I would like to use a cell in a worksheet as a value in a SQL query in Excel 2007.

Let's say for example I have the following query:

SELECT DATE, TIME, PARTID
FROM TABLE1
WHERE PARTID = [Cell Value] --------> For example want it to be at Sheet1 Cell A1

I am using Excel Query Wizard. My Query is working perfectly without any reference(a constant value), however, using an Excel Cell I do not know how to perform that.