Split $ between acconts

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I hope this makes sense.

What I am trying to do is, on a report, if the department number is 99 for a
certain division, then split the $ amount between the correct type of account
(SO, Damage or Spoilage) based on the AllocPercent. If the department is not
99, then just put that $ amount to the correct Account.

tbl_AccountNumbers

SequenceNum Autonumber
Division Text
Department Text
AllocPercent Number
SOAcct Text
DamageAcct Text
SpoilageAcct Text

1 62 99 65.42% 62018-001-206043 62018-001-203036 62018-001-213036
2 62 99 0.15% 62018-002-206043 62018-002-203036 62018-002-213036
9 71 99 74.82% 71018-001-206043 71018-001-203036 71018-001-213036
17 80 99 73.42% 80018-001-206043 80018-001-203036 80018-001-213036
26 62 01 0.00% 62018-001-206043 62018-001-203036 62018-001-213036
27 62 02 0.00% 62018-002-206043 62018-002-203036 62018-002-213036


The data:
Damage 62 99 100.00
Damage 62 01 666.46
SO 71 06 60.76
Quality 80 99 15.24

What I'm trying to get:
62 99 65.42 62018-001-203036
62 99 .15 62018-002-203036
62 01 666.46 62018-001-203036
71 06 60.76 71018-001-206043
80 99 11.19 80018-001-213036
etc.
 
Sorry. I asked for the other posts to be deleted. It gave me an error message
when I posted saying to try again later.

Now, do you have any real help?
 
Back
Top