Dear all,
I am generating a report in ASP Platform using Microsoft Access 2000 as the Backend database.
Here is my query in the ASP page:
The dteFromDate : 10/10/2003 'MM/DD/YYYY
The dteToDate : 10/14/2003 'MM/DD/YYYY
Dim strSQL
Dim dteFromDate
Dim dteToDate
strSQL = ""
strSQL = " SELECT * "
strSQL = strSQL & " FROM Table1 "
strSQL = strSQL & " WHERE Table1.CreatedDate = #" & dteFromDate & "#"
strSQL = strSQL & " AND Table1.CreatedDate <= #"
strSQL = strSQL & dteTodate & "#"
strSQL = strSQL & " ORDER BY ID "
The CreatedDate data type is Date/Time.
The format is General Date.
I always get the error as Type Mismatched.
Is there solution for this..??
Thanks a lot
Regards
icy111
I am generating a report in ASP Platform using Microsoft Access 2000 as the Backend database.
Here is my query in the ASP page:
The dteFromDate : 10/10/2003 'MM/DD/YYYY
The dteToDate : 10/14/2003 'MM/DD/YYYY
Dim strSQL
Dim dteFromDate
Dim dteToDate
strSQL = ""
strSQL = " SELECT * "
strSQL = strSQL & " FROM Table1 "
strSQL = strSQL & " WHERE Table1.CreatedDate = #" & dteFromDate & "#"
strSQL = strSQL & " AND Table1.CreatedDate <= #"
strSQL = strSQL & dteTodate & "#"
strSQL = strSQL & " ORDER BY ID "
The CreatedDate data type is Date/Time.
The format is General Date.
I always get the error as Type Mismatched.
Is there solution for this..??
Thanks a lot
Regards
icy111