VB6 Businessworks/Pervasive odbc query
VB6 Businessworks/Pervasive odbc query
(OP)
In VB6, when performing this query
"Select Count(timelogged) as LastModified from COAuditLog WHERE timelogged>10/2/2008 AND tablename='customer'"
The above statement produces this error.
"[Pervasive][ODBC Client Interface][LNA][Pervasive][ODBC Engine Interface]Incompatible types in predicate."
By removing the date component of the query, no error
is produced. Any help with forming a correct date
query would be appreciated.
this works
"Select Count(timelogged) as LastModified from COAuditLog WHERE tablename='customer'"
Regards,
"Select Count(timelogged) as LastModified from COAuditLog WHERE timelogged>10/2/2008 AND tablename='customer'"
The above statement produces this error.
"[Pervasive][ODBC Client Interface][LNA][Pervasive][ODBC Engine Interface]Incompatible types in predicate."
By removing the date component of the query, no error
is produced. Any help with forming a correct date
query would be appreciated.
this works
"Select Count(timelogged) as LastModified from COAuditLog WHERE tablename='customer'"
Regards,
RE: VB6 Businessworks/Pervasive odbc query
"Select Count(timelogged) as LastModified from COAuditLog WHERE timelogged>'2008-10-2' AND tablename='customer'"
Mirtheil
Certified Pervasive Developer
Certified Pervasive Technician
http://www.mirtheil.com
RE: VB6 Businessworks/Pervasive odbc query
I've been programming for 25 years. it's nice to
get irritated (pissed off) once in awhile when
things don't work. Live and learn.
You can't go wrong when take the time and
provide this kind of help to others.
Good luck to you.