I have a small application and need to run monthly queries/reports on the data. I have created a QBE query and have entered the month beginning and ending dates to collect the data I need for each month.
There must be a way to have Paradox ask, when the query is run, for these two dates and insert into the query. I know I saw someone run one in the past, but can not find any code.
I also anticipate needing code to check the date format to ensure a correct date is entered.
This the current query in SQL:
BEGIN
SELECT DISTINCT D."SPR Number", D."Acceptance Date", D.Description, D."Type of Use", D1."Project Name", D2.Sequence, D2."Completion Type"
FROM "COs.DB" D, "Projects.DB" D1, "Completion Types.DB" D2
WHERE
(D."Acceptance Date" >= '12/01/2003')
AND (D."Acceptance Date" <= '12/30/2003')
AND (D1."SPR Number" = D."SPR Number"
AND (D2."Short Name" = D."Type of Use"
ORDER BY D2.Sequence, D1."Project Name", D."Acceptance Date", D.Description, D."Type of Use", D2."Completion Type", D."SPR Number"
END
I am not a programmer (at least not since the 80's) and appreciate all the help I can get. Our IT department just will not assist. Thank you all for your assistance.
There must be a way to have Paradox ask, when the query is run, for these two dates and insert into the query. I know I saw someone run one in the past, but can not find any code.
I also anticipate needing code to check the date format to ensure a correct date is entered.
This the current query in SQL:
BEGIN
SELECT DISTINCT D."SPR Number", D."Acceptance Date", D.Description, D."Type of Use", D1."Project Name", D2.Sequence, D2."Completion Type"
FROM "COs.DB" D, "Projects.DB" D1, "Completion Types.DB" D2
WHERE
(D."Acceptance Date" >= '12/01/2003')
AND (D."Acceptance Date" <= '12/30/2003')
AND (D1."SPR Number" = D."SPR Number"
AND (D2."Short Name" = D."Type of Use"
ORDER BY D2.Sequence, D1."Project Name", D."Acceptance Date", D.Description, D."Type of Use", D2."Completion Type", D."SPR Number"
END
I am not a programmer (at least not since the 80's) and appreciate all the help I can get. Our IT department just will not assist. Thank you all for your assistance.