I’m tyring to automate a NotesSQL query that selectes on dates. It works just fine with a hard coded date
SELECT
dist_number,
create_date,
call_status,
scheduled
FROM
Contact CONTACT
WHERE
dist_number IS NOT NULL
AND create_date = '2005-04-05'
AND scheduled = 'Y'
AND dist_number > 0
ORDER BY
2,
1
However, when I try to place a question mark in place of the date string and enter the exact same date string into the Parameter pop-up, I get “Syntax Error in date”. If I just enter the date, I get a “Invalid Scale Value” error.
Is there a way to pass a date as a WHERE clause parameter. Doesn’t seem to work in any combination of quotes, questionmarks and braces that I have tried. E.g. create_date=‘?’ or create_date={d ?} or create_date=?