sinistapenguin
Technical User
I am still having problems retrieving records that are between 2 dates!
This is what I have done:
====================================================
SELECT *
FROM Invoices
WHERE InvoiceDate BETWEEN 'varStartDate' AND 'varEndDate'
ORDER BY InvoiceDate
VARIABLES:
varStartDate 1 Request.form("StartDate")
varEndDate 1 Request.form("EndDate")
====================================================
I have also tried:
SELECT *
FROM Invoices
WHERE InvoiceDate > 'varStartDate' AND InvoiceDate < 'varEndDate'
ORDER BY InvoiceDate
I cannot seem to get this to work properly. If anyone has any ideas, they would be gratefully received.
Thanks
Sinista
This is what I have done:
====================================================
SELECT *
FROM Invoices
WHERE InvoiceDate BETWEEN 'varStartDate' AND 'varEndDate'
ORDER BY InvoiceDate
VARIABLES:
varStartDate 1 Request.form("StartDate")
varEndDate 1 Request.form("EndDate")
====================================================
I have also tried:
SELECT *
FROM Invoices
WHERE InvoiceDate > 'varStartDate' AND InvoiceDate < 'varEndDate'
ORDER BY InvoiceDate
I cannot seem to get this to work properly. If anyone has any ideas, they would be gratefully received.
Thanks
Sinista