G
GLT101
Hi,
The following query fails in Access 2003 with the error:
"Undefined function 'GetReplaceFactor' in expression"
GetReplaceFactor is a User defined Function in the SQL
server database. What is the correct syntax in Access
for me to call this function?
Cheers,
Geoff
SQL Query:
SELECT DISTINCT
TOP 100 PERCENT dbo_orddet.ordd_sku_cd AS sku_cd, dbo_sxsn_sn.sn_sn As
SN, dbo_sxsn_sn.sn_udfdt1 As ExpDate,
SUM(dbo_orddet.ordd_xno_users * GetReplaceFactor(dbo_sn_udfdec3)) AS
NumUsers,
dbo_orddet.ordd_release_dt As ReleaseDate
FROM dbo_sxsn_sn INNER JOIN
dbo_orddet ON dbo_orddet.ordd_xpk = dbo_sxsn_sn.ordd_xpk
WHERE (dbo_orddet.ordd_sku_cd = dbo_orddet.ordd_sku_cd) AND
(dbo_sxsn_sn.sn_sn = dbo_sxsn_sn.sn_sn) AND
(dbo_orddet.ordd_release_dt > DATEADD(DD, -14, GETDATE()) )
GROUP BY dbo_orddet.ordd_sku_cd, dbo_sxsn_sn.sn_sn, dbo_sxsn_sn.sn_udfdt1,
dbo_orddet.ordd_release_dt
HAVING SUM(dbo_orddet.ordd_xno_users *
dbo_GetReplaceFactor(dbo_sn_udfdec3))>10
ORDER BY SUM(dbo_orddet.ordd_xno_users *
dbo_GetReplaceFactor(dbo_sn_udfdec3)) DESC;
The following query fails in Access 2003 with the error:
"Undefined function 'GetReplaceFactor' in expression"
GetReplaceFactor is a User defined Function in the SQL
server database. What is the correct syntax in Access
for me to call this function?
Cheers,
Geoff
SQL Query:
SELECT DISTINCT
TOP 100 PERCENT dbo_orddet.ordd_sku_cd AS sku_cd, dbo_sxsn_sn.sn_sn As
SN, dbo_sxsn_sn.sn_udfdt1 As ExpDate,
SUM(dbo_orddet.ordd_xno_users * GetReplaceFactor(dbo_sn_udfdec3)) AS
NumUsers,
dbo_orddet.ordd_release_dt As ReleaseDate
FROM dbo_sxsn_sn INNER JOIN
dbo_orddet ON dbo_orddet.ordd_xpk = dbo_sxsn_sn.ordd_xpk
WHERE (dbo_orddet.ordd_sku_cd = dbo_orddet.ordd_sku_cd) AND
(dbo_sxsn_sn.sn_sn = dbo_sxsn_sn.sn_sn) AND
(dbo_orddet.ordd_release_dt > DATEADD(DD, -14, GETDATE()) )
GROUP BY dbo_orddet.ordd_sku_cd, dbo_sxsn_sn.sn_sn, dbo_sxsn_sn.sn_udfdt1,
dbo_orddet.ordd_release_dt
HAVING SUM(dbo_orddet.ordd_xno_users *
dbo_GetReplaceFactor(dbo_sn_udfdec3))>10
ORDER BY SUM(dbo_orddet.ordd_xno_users *
dbo_GetReplaceFactor(dbo_sn_udfdec3)) DESC;