R
Ruth Isaacs
Hello All
I am really struggling to get the output I need from 3 tables in my db.
Essentially, I need to report on months in which a payment has not been
received (by the 'practice') at all, or it has been for the wrong amount.
I have the following tables:
[x confirmed]
[practices]
[payedoc accounts]
[practices] has key field 'prac name', which is related to field 'practice'
in table [x confirmed] and also to field 'practice' in table [payedoc
accounts].
[practices] also has currenc fields 'fee' and 'newfee'.
[x confirmed] also has integer field 'month number', related to 'mth' in
table [payedoc accounts].
[payedoc accounts] also has currency field [credit].
A payment is due for a given 'practice' and 'month number' if there is one
or more records in [x confirmed] with the corresponding values in fields
'practice' and 'month number'. The amount of the payment due is in table
[practices], by the value in 'newfee' if 'month number' is < 85 otherwise by
the value in 'fee'.
Field 'credit' in table [payedoc accounts] contains the payments that have
been received, so it is this field that needs to be compared to 'newfee' or
'fee' (depending on the value of 'month number') for each 'practice'.
Can anyone help with this?
Ultimately need a report that, for any missing or incorrect payments, will
show (grouped by Practice) the Practice name, the month number, the fee due,
the fee received and the (thus) the discrepency.
I have wrestled with this for days now, and can't get it right, so would be
very grateful if anyone can assist.
If anyone is able to help but feels that it would take longer than they
could reasonably spend on it for free, I would be prepared to pay a
(reasonable!) fee for the complete solution.
Many thanks
Leslie Isaacs
I am really struggling to get the output I need from 3 tables in my db.
Essentially, I need to report on months in which a payment has not been
received (by the 'practice') at all, or it has been for the wrong amount.
I have the following tables:
[x confirmed]
[practices]
[payedoc accounts]
[practices] has key field 'prac name', which is related to field 'practice'
in table [x confirmed] and also to field 'practice' in table [payedoc
accounts].
[practices] also has currenc fields 'fee' and 'newfee'.
[x confirmed] also has integer field 'month number', related to 'mth' in
table [payedoc accounts].
[payedoc accounts] also has currency field [credit].
A payment is due for a given 'practice' and 'month number' if there is one
or more records in [x confirmed] with the corresponding values in fields
'practice' and 'month number'. The amount of the payment due is in table
[practices], by the value in 'newfee' if 'month number' is < 85 otherwise by
the value in 'fee'.
Field 'credit' in table [payedoc accounts] contains the payments that have
been received, so it is this field that needs to be compared to 'newfee' or
'fee' (depending on the value of 'month number') for each 'practice'.
Can anyone help with this?
Ultimately need a report that, for any missing or incorrect payments, will
show (grouped by Practice) the Practice name, the month number, the fee due,
the fee received and the (thus) the discrepency.
I have wrestled with this for days now, and can't get it right, so would be
very grateful if anyone can assist.
If anyone is able to help but feels that it would take longer than they
could reasonably spend on it for free, I would be prepared to pay a
(reasonable!) fee for the complete solution.
Many thanks
Leslie Isaacs