D
DevilDog1978
Here is what I currently have:
SELECT [dbo_tams_icp_ce t1].icp, [dbo_tams_icp_ce t1].sortord, [dbo_tams_se
t1].part_nbr, [dbo_tams_se t1].cage, [dbo_tams_se t1].mfr_desc, [test 1
t].[Auth Qty], [dbo_tams_icp_ce t1].item_nbr,
IIf(IsError(CInt([dbo_tams_icp_ce t1]![ce_qty])),0,CInt([dbo_tams_icp_ce
t1]![ce_qty])) AS qty, IIf([test 1 t]![Auth Qty]>=[qty],"T","F") AS Complete
FROM ([test 1 t] RIGHT JOIN [dbo_tams_icp_ce t1] ON [test 1 t].item_nbr =
[dbo_tams_icp_ce t1].item_nbr) INNER JOIN [dbo_tams_se t1] ON
[dbo_tams_icp_ce t1].item_nbr = [dbo_tams_se t1].item_nbr
WHERE ((([dbo_tams_icp_ce t1].icp) Like "17-20*" Or ([dbo_tams_icp_ce
t1].icp) Like "17-50*"))
ORDER BY [dbo_tams_icp_ce t1].icp, [dbo_tams_icp_ce t1].sortord
WITH OWNERACCESS OPTION;
The problem is my IsError does not seem to be working. The qty field still
produces #Error if the field is null, 0, or contains AR. Where am I going
wrong?
SELECT [dbo_tams_icp_ce t1].icp, [dbo_tams_icp_ce t1].sortord, [dbo_tams_se
t1].part_nbr, [dbo_tams_se t1].cage, [dbo_tams_se t1].mfr_desc, [test 1
t].[Auth Qty], [dbo_tams_icp_ce t1].item_nbr,
IIf(IsError(CInt([dbo_tams_icp_ce t1]![ce_qty])),0,CInt([dbo_tams_icp_ce
t1]![ce_qty])) AS qty, IIf([test 1 t]![Auth Qty]>=[qty],"T","F") AS Complete
FROM ([test 1 t] RIGHT JOIN [dbo_tams_icp_ce t1] ON [test 1 t].item_nbr =
[dbo_tams_icp_ce t1].item_nbr) INNER JOIN [dbo_tams_se t1] ON
[dbo_tams_icp_ce t1].item_nbr = [dbo_tams_se t1].item_nbr
WHERE ((([dbo_tams_icp_ce t1].icp) Like "17-20*" Or ([dbo_tams_icp_ce
t1].icp) Like "17-50*"))
ORDER BY [dbo_tams_icp_ce t1].icp, [dbo_tams_icp_ce t1].sortord
WITH OWNERACCESS OPTION;
The problem is my IsError does not seem to be working. The qty field still
produces #Error if the field is null, 0, or contains AR. Where am I going
wrong?