K
KPR
Hello All,
I have two tables (tbl_1 and tbl_2) linked with a left join and I want to
count the related records between the two tables. If no records exist in
tbl_2 then I need to have the count represented as 0. I'm using the following
DCount statement and if no records exist in tbl_2 I get a #error returned.
How can I convert this error to a 0?
RECORDCOUNT: Nz(DCount("[ID]","tbl_2","[LinkedField]= " &
[tbl_1]![LinkedField]),0)
Thanks,
Ken
I have two tables (tbl_1 and tbl_2) linked with a left join and I want to
count the related records between the two tables. If no records exist in
tbl_2 then I need to have the count represented as 0. I'm using the following
DCount statement and if no records exist in tbl_2 I get a #error returned.
How can I convert this error to a 0?
RECORDCOUNT: Nz(DCount("[ID]","tbl_2","[LinkedField]= " &
[tbl_1]![LinkedField]),0)
Thanks,
Ken