I am trying to pick out data from an OBDC Source so i have created a
link table to it. I have created a query to look at the data in this
table. I have chosen all the fields that i require. There is a date
field in there which looks at sets of data for a week. If i go into
the query design and actually type in the criteria of the date in
this format it works year-month-day (2004-02-09).
So i have tried to put a text box in to be able to type the date in
and be able to search for. This doesnt work. This is the SQL i am
using. Its really basic yet cant see the problem!
SELECT CTCH_WK.CELLID, CTCH_WK.WEEKOF, CTCH_WK.BSCID,
CTCH_WK.TOT_NORMATTS, CTCH_WK.TOT_NORMSEIZ, CTCH_WK.TOT_RFLOSSES,
CTCH_WK.TOT_MISCDROP, CTCH_WK.TOT_DROPQDL, CTCH_WK.TOT_DROPQUL,
CTCH_WK.TOT_DROPSSDL, CTCH_WK.TOT_DROPSSUL, CTCH_WK.TOT_DROPTA INTO
CTCH_WK_Q
FROM CTCH_WK
WHERE (((CTCH_WK.WEEKOF)=[Type In The Week Eg 2004-02-09]));
Can anyone see why it doesnt work, but works fine if you put it
directly into the query. Obviously i dont want to do that for every
query i want to run as it would be a pain!