Dear All,
Please could I get help on the following.
Your help will really be greatly appreciated.![[smile] [smile] [smile]](/data/assets/smilies/smile.gif)
I have a query (RpIvaCount)
That query has two tables RPINFO and XIREC.
Those tables are linked as follows:
One RPINFO case for many XIREC cases (One to many relationship)
The RPINFO case ref no field is:
UNI7LIVE_RPINFO.REFVAL (UNI7LIVE_RPINFO is Table REFVAL is the field)
The XIREC case reference no field is:
UNI7LIVE_XIREC.REFVAL (UNI7LIVE_XIREC is table REFVAL is the field)
So I get replication/duplication.
I.E. 06/00001/HMO has two child reference no's
06/00499/HMO
06/00498/HMO
So it will appear twice in the list, therefore counted twice.
So my question is how do I count only the one reference no. UNI7LIVE_RPINFO.REFVAL, with the Dcount function, without counting the replicates/duplicates?
I tried the below but it counted the duplicates.
This within a new query....
Please help this is driving me bananas![[banghead] [banghead] [banghead]](/data/assets/smilies/banghead.gif)
Your help will be greatly appreciated.![[bigsmile] [bigsmile] [bigsmile]](/data/assets/smilies/bigsmile.gif)
Thank you![[smile] [smile] [smile]](/data/assets/smilies/smile.gif)
Kind regards
Triacona
Please could I get help on the following.
Your help will really be greatly appreciated.
![[smile] [smile] [smile]](/data/assets/smilies/smile.gif)
I have a query (RpIvaCount)
That query has two tables RPINFO and XIREC.
Those tables are linked as follows:
One RPINFO case for many XIREC cases (One to many relationship)
The RPINFO case ref no field is:
UNI7LIVE_RPINFO.REFVAL (UNI7LIVE_RPINFO is Table REFVAL is the field)
The XIREC case reference no field is:
UNI7LIVE_XIREC.REFVAL (UNI7LIVE_XIREC is table REFVAL is the field)
So I get replication/duplication.
I.E. 06/00001/HMO has two child reference no's
06/00499/HMO
06/00498/HMO
So it will appear twice in the list, therefore counted twice.
So my question is how do I count only the one reference no. UNI7LIVE_RPINFO.REFVAL, with the Dcount function, without counting the replicates/duplicates?
I tried the below but it counted the duplicates.
Code:
=dcount("*","RpIvaCount","UNI7LIVE.REFVAL")
Code:
=DCount(IIf([UNI7LIVE_XIREC.REFVAL] Is Not Null,DCount("*","RpIvaCount","UNI7LIVE_RPINFO.REFVAL"),0),"RpIvaCount","UNI7LIVE_RPINFO.REFVAL")
Code:
=IIf(DLookUp("UNI7LIVE_XIREC.REFVAL","RpIvaCount") Is Not Null,DCount("*","RpIvaCount","UNI7LIVE_RPINFO.REFVAL"),0)
Code:
IvaCount: count([UNI7LIVE_RPINFO] iif([UNI7LIVE_XIREC.[REFVAL] is not null,0))
Please help this is driving me bananas
![[banghead] [banghead] [banghead]](/data/assets/smilies/banghead.gif)
Your help will be greatly appreciated.
![[bigsmile] [bigsmile] [bigsmile]](/data/assets/smilies/bigsmile.gif)
Thank you
![[smile] [smile] [smile]](/data/assets/smilies/smile.gif)
Kind regards
Triacona