B
boreal
I'm unable to get the function TIMESTAMPADD to work in either MS Query
(v.11.5510.6408 for Office 2003) or Access 2000 when querying an AS400 system
using IBM's Client Access Express ODBC Driver. Is it not supported? What is
supported?
MS Query:
Setting a column definition with
TIMESTAMPADD(SQL_TSI_HOUR,14,TIMESTAMP(CURDATE(),CURTIME())) results in error
"SQL0204 - TIMESTAMPADD in *LIBL type *N not found."
So, since Query didn't seem to recognize TIMESTAMPADD as a function, I tried:
{fn TIMESTAMPADD(SQL_TSI_HOUR,14,TIMESTAMP(CURDATE(),CURTIME()))}
This resulted in the error "Syntax Error in date."
I tried DATEADD("h",14,TIMESTAMP(CURDATE(),CURTIME()))
and DATEADD("h",14,now())
but I received the error "Column 'h' not in specified tables"
Access:
None of these functions work in Access either. When I try the latter
DATEADD, I get "ODBC--call failed. [IBM][Client Access Express ODBC Driver
(32-bit)][DB2/400 SQL]SQL0418 - Use of parameter marker not valid."
Help.
(v.11.5510.6408 for Office 2003) or Access 2000 when querying an AS400 system
using IBM's Client Access Express ODBC Driver. Is it not supported? What is
supported?
MS Query:
Setting a column definition with
TIMESTAMPADD(SQL_TSI_HOUR,14,TIMESTAMP(CURDATE(),CURTIME())) results in error
"SQL0204 - TIMESTAMPADD in *LIBL type *N not found."
So, since Query didn't seem to recognize TIMESTAMPADD as a function, I tried:
{fn TIMESTAMPADD(SQL_TSI_HOUR,14,TIMESTAMP(CURDATE(),CURTIME()))}
This resulted in the error "Syntax Error in date."
I tried DATEADD("h",14,TIMESTAMP(CURDATE(),CURTIME()))
and DATEADD("h",14,now())
but I received the error "Column 'h' not in specified tables"
Access:
None of these functions work in Access either. When I try the latter
DATEADD, I get "ODBC--call failed. [IBM][Client Access Express ODBC Driver
(32-bit)][DB2/400 SQL]SQL0418 - Use of parameter marker not valid."
Help.