G
Guest
I use MS Access occasionally but have coded in QMF. I have a MS passthru
query noted below. I want to require the user to enter the dates. I found
the commands [enter date] but am unsuccessful using this in my sql query.
Are there other commands that will prompt the user to enter the dates? Many
thanks.
SELECT
A.CH_UID,
A.CH_DOC_ID,
A.DOC_SEQ,
A.ACTION_NO,
A.BUSINESS_UNIT,
A.DATE_IDENTIFIED,
A.TITLE,
B.DATA,
A.CORRECTIVE_ACTION,
A.PROC_SUM,
A.PROC_SUM2,
A.REPORTED,
A.FUND_BOARDS,
A.QUARTER_REPORTED,
A.REPORTED_REASON
from
pcms_chdoc_attr_history a,
pcms_chdoc_detail_desc b
where
a.ch_uid = b.ch_uid and
a.ch_doc_id = b.ch_doc_id and
a.product_id = 'LEGAL' and
a.ch_doc_type = 'EXCEPTION' and
a.business_unit = 'FN - Finance' and
(A.DATE_IDENTIFIED > '01-DEC-2006' and
A.DATE_IDENTIFIED < '01-APR-2007') and
a.business_unit = 'FN - Finance' and
a.action_no =
(SELECT MAX(action_no)
FROM pcms_chdoc_attr_history T
WHERE A.CH_UID = T.CH_UID)
ORDER BY
a.date_identified desc
query noted below. I want to require the user to enter the dates. I found
the commands [enter date] but am unsuccessful using this in my sql query.
Are there other commands that will prompt the user to enter the dates? Many
thanks.
SELECT
A.CH_UID,
A.CH_DOC_ID,
A.DOC_SEQ,
A.ACTION_NO,
A.BUSINESS_UNIT,
A.DATE_IDENTIFIED,
A.TITLE,
B.DATA,
A.CORRECTIVE_ACTION,
A.PROC_SUM,
A.PROC_SUM2,
A.REPORTED,
A.FUND_BOARDS,
A.QUARTER_REPORTED,
A.REPORTED_REASON
from
pcms_chdoc_attr_history a,
pcms_chdoc_detail_desc b
where
a.ch_uid = b.ch_uid and
a.ch_doc_id = b.ch_doc_id and
a.product_id = 'LEGAL' and
a.ch_doc_type = 'EXCEPTION' and
a.business_unit = 'FN - Finance' and
(A.DATE_IDENTIFIED > '01-DEC-2006' and
A.DATE_IDENTIFIED < '01-APR-2007') and
a.business_unit = 'FN - Finance' and
a.action_no =
(SELECT MAX(action_no)
FROM pcms_chdoc_attr_history T
WHERE A.CH_UID = T.CH_UID)
ORDER BY
a.date_identified desc