I am using Access 97 to create a payroll program for our contractors.
The problem that I am having is calculating escrow. This is how it works - If the gross is less than or equal to $500 then $50 gets subtracted otherwise gross*0.1. The max amount subtracted for a year is $1250. These are the IIf statements I used :
Escrow – =IIf((Sum(IIf(([Gross]<=500),50,([Gross]*0.1))))>=1250,0,IIf(([Gross]<=500),50,([Gross]*0.1)))
Escrow Total – =IIf((Sum(IIf(([Gross]<=500),50,([Gross]*0.1))))>=1250,1250,Sum(IIf(([Gross]<=500),50,([Gross]*0.1))))
This obviously halfway works. The problem that occurs is that once the total escrow hits $1250, it replaces all the previous calculations in the previous records. I need this information to stay, so it can go in my yearly earnings statement. At this point I am lost. Hope somebody can help.
Thanks,
Matt
The problem that I am having is calculating escrow. This is how it works - If the gross is less than or equal to $500 then $50 gets subtracted otherwise gross*0.1. The max amount subtracted for a year is $1250. These are the IIf statements I used :
Escrow – =IIf((Sum(IIf(([Gross]<=500),50,([Gross]*0.1))))>=1250,0,IIf(([Gross]<=500),50,([Gross]*0.1)))
Escrow Total – =IIf((Sum(IIf(([Gross]<=500),50,([Gross]*0.1))))>=1250,1250,Sum(IIf(([Gross]<=500),50,([Gross]*0.1))))
This obviously halfway works. The problem that occurs is that once the total escrow hits $1250, it replaces all the previous calculations in the previous records. I need this information to stay, so it can go in my yearly earnings statement. At this point I am lost. Hope somebody can help.
Thanks,
Matt