I am trying to convert a working MS Access query to work in an Oracle database, accessed through VB Script (.asp). This is the last section of the WHERE clause:
sql = sql & "WHERE (UAT.HB.MB_MODE = 'A' AND UAT.HB.PRINT_DATE >= '" & SD & "' AND UAT.HB.PRINT_DATE <= '" & ED &"' )"
The variable "SD" (i.e., "start date") is a text string that may contain a value, such as "11/11/2008." The same applies to the variable "ED" (that is, the "end date").
However, the dates do not work. Does Oracle require a special way to use dates?
Do I need to convert dates? I surround them with the keyword "#", as in MS Access?
date sql oracle ms-access vbscript
Joe
source share