S
Serge Myrand
Hi,
The first query return a type conversion error when executed within
MS-Access 2002 sp3. The proble is that parameter :MOD_TYPE is recognized
as a Text field even if the corresponding field MOD_TYPE is of type Text
and 20 characters long.
The second query run correctly and retun no error. I only replace the
parameter with a string. How can I typcast the parameter to force the
acceptation of my input value? This is a simplified version of the query
that use an INNER JOIN in the SELECT and over than 10 parameters of all
types.
INSERT INTO CLIENT_SELL_HIST (PART_NO, REV_NO, CLIENT_NO, MOD_TYPE)
SELECT DISTINCT PART_NO, REV_NO, CLIENT_NO, :MOD_TYPE
FROM CLIENT_SELL
WHERE PART_NO =
ART_NO AND REV_NO = :REV_NO AND CLIENT_NO =
:CLIENT_NO
INSERT INTO CLIENT_SELL_HIST (PART_NO, REV_NO, CLIENT_NO, MOD_TYPE)
SELECT DISTINCT PART_NO, REV_NO, CLIENT_NO, "AAAA"
FROM CLIENT_SELL
WHERE PART_NO =
ART_NO AND REV_NO = :REV_NO AND CLIENT_NO =
:CLIENT_NO
thank you for your time
serge
The first query return a type conversion error when executed within
MS-Access 2002 sp3. The proble is that parameter :MOD_TYPE is recognized
as a Text field even if the corresponding field MOD_TYPE is of type Text
and 20 characters long.
The second query run correctly and retun no error. I only replace the
parameter with a string. How can I typcast the parameter to force the
acceptation of my input value? This is a simplified version of the query
that use an INNER JOIN in the SELECT and over than 10 parameters of all
types.
INSERT INTO CLIENT_SELL_HIST (PART_NO, REV_NO, CLIENT_NO, MOD_TYPE)
SELECT DISTINCT PART_NO, REV_NO, CLIENT_NO, :MOD_TYPE
FROM CLIENT_SELL
WHERE PART_NO =

:CLIENT_NO
INSERT INTO CLIENT_SELL_HIST (PART_NO, REV_NO, CLIENT_NO, MOD_TYPE)
SELECT DISTINCT PART_NO, REV_NO, CLIENT_NO, "AAAA"
FROM CLIENT_SELL
WHERE PART_NO =

:CLIENT_NO
thank you for your time
serge