Dear all,
I have the following problem...
I have a query that generates for all records (OpenRpCases)
The main fields are:
REFVAL (UNI7LIVE_RPINFO) (table) UNI7LIVE_RPINFO.REFVAL(cases)
REFVAL (UNI7LIVE_XIREC) (table) UNI7LIVE_XIREC.REFVAL(Subcases)
VOFF (UNI7LIVE_XIVIST) (table) UNI7LIVE_XIVIST.VOFF(Officer)
I have a query that lists all the cases so I can count them(RpList) this data is pulled from the (OpenrpCase)
I have a query that lists all the subcases for counting purposes. (RpIvaList)
I have run a report(OpenRpCases)off the query (OpenRpCases)
I have included totals of the other two queries.
I have used the Dcount function. That works o.k.
I have a query that lists all the cases for counting purposes. (TEST2)
I now have inserted another field into each of those count queries (RpList)(RpIvaList)
This field is called VOFF.
I now want to use the Dcount function in collaboration with an iff statement, for Each officer (VOFF)
This is what I have come up with:
I have also tried this:
or this
or this...
This in the VOFF header
Or this in the VOFF header
This is to bring up how many cases are open by a certain officer (in this case EH_EL)
This comes up with an error or the wrong number.
My report has serval levels:
Report Header
Page Header
VOFF Header (officers)
Address Header
UNI7LIVE_RPINFO.REFVAL Header (cases)
UNI7LIVE_XIREC.REFVAL (subcases)
Detail
Page Footer
I have put this code in a text box, in the following levels:
Report header
Page header
VOFF header (in desperation)![[sadeyes] [sadeyes] [sadeyes]](/data/assets/smilies/sadeyes.gif)
Have I gone completely wrong???![[banghead] [banghead] [banghead]](/data/assets/smilies/banghead.gif)
I have also created a test table with the original tables in, I did not use the OpenRpCases query.
This still gives me errors, it either displays nothing, or it displayes error, or it displays the wrong number of cases, either listing all of them or an inaccurate number.
If I can use the VOFF header to curtail the number according to officer (VOFF) that will be great, but at the moment it is not working...
Please, please help, this one is driving me around the bend.
Kind regards
Triacona![[smile] [smile] [smile]](/data/assets/smilies/smile.gif)
I have the following problem...
I have a query that generates for all records (OpenRpCases)
The main fields are:
REFVAL (UNI7LIVE_RPINFO) (table) UNI7LIVE_RPINFO.REFVAL(cases)
REFVAL (UNI7LIVE_XIREC) (table) UNI7LIVE_XIREC.REFVAL(Subcases)
VOFF (UNI7LIVE_XIVIST) (table) UNI7LIVE_XIVIST.VOFF(Officer)
I have a query that lists all the cases so I can count them(RpList) this data is pulled from the (OpenrpCase)
#as the main query (OpenRpCase) would generate more records due to the fact that it has sub cases#
I have a query that lists all the subcases for counting purposes. (RpIvaList)
I have run a report(OpenRpCases)off the query (OpenRpCases)
I have included totals of the other two queries.
I have used the Dcount function. That works o.k.
I have a query that lists all the cases for counting purposes. (TEST2)
I now have inserted another field into each of those count queries (RpList)(RpIvaList)
This field is called VOFF.
I now want to use the Dcount function in collaboration with an iff statement, for Each officer (VOFF)
This is what I have come up with:
Code:
=IIf("VOFF"="EH_EL",DCount("*","RpList","UNI7LIVE_RPINFO.REFVAL"))
Code:
=DCount("UNI7LIVE_XIVIST.VOFF"="EH_EL","RpIvaList","UNI7LIVE_XIREC.REFVAL")
Code:
=DCount("EH_EL","RpList","UNI7LIVE_RPINFO.REFVAL")
Code:
=IIf("UNI7LIVE_XIVIST.VOFF"="EH_EL",DCount("*","TEST2","UNI7LIVE_RPINFO.REFVAL"),0)
Code:
=DCount("*","TEST2","UNI7LIVE_RPINFO.REFVAL")
Code:
=DCount("EH_EL","TEST2","UNI7LIVE_RPINFO.REFVAL")
This comes up with an error or the wrong number.
My report has serval levels:
Report Header
Page Header
VOFF Header (officers)
Address Header
UNI7LIVE_RPINFO.REFVAL Header (cases)
UNI7LIVE_XIREC.REFVAL (subcases)
Detail
Page Footer
I have put this code in a text box, in the following levels:
Report header
Page header
VOFF header (in desperation)
![[sadeyes] [sadeyes] [sadeyes]](/data/assets/smilies/sadeyes.gif)
Have I gone completely wrong???
![[banghead] [banghead] [banghead]](/data/assets/smilies/banghead.gif)
I have also created a test table with the original tables in, I did not use the OpenRpCases query.
This still gives me errors, it either displays nothing, or it displayes error, or it displays the wrong number of cases, either listing all of them or an inaccurate number.
If I can use the VOFF header to curtail the number according to officer (VOFF) that will be great, but at the moment it is not working...
Please, please help, this one is driving me around the bend.
Kind regards
Triacona
![[smile] [smile] [smile]](/data/assets/smilies/smile.gif)