Jakboi
Death by Access
- Local time
- Today, 17:28
- Joined
- Nov 20, 2006
- Messages
- 303
Hello,
I have the following for Excel and was wondering if I could use it for an Access form. What this does is the following.
There is a text box for a dollar amount. There are 4 dropdown boxes for employee names. There are 4 text boxes for what credit they receive for the sale.
Example.
$100,000 Sale
4 Employees are involved.
They each receive the total divided by 4.
So there is $100,000 in a text field. When I select 1 employee from the combo box it will place 100,000 into employee credit box 1.
If I select an employee from combo box 2, then each employee will have 50,000 in the credit text box by there name.
If I select an employee from combo box 3, then each of the 3 will have $33,000 in a text box by their name and so on.
Basically it takes the whole amount in box one and will divide the amount if an employee is selected in a dropdown, then place that amount into another text box. I am going to try to convert the above but if anyone has a better idea that would be great.
Thanks.
Code:
=IF(AND(I6>1,SUM(SUM(I$7>1,I$8>1,I$9>1,1),SUM(I$7=1,I$8=1,I$9=1))=4),F$6/(SUM(I$7>1,I$8>1,I$9>1,1)),"0")
I have the following for Excel and was wondering if I could use it for an Access form. What this does is the following.
There is a text box for a dollar amount. There are 4 dropdown boxes for employee names. There are 4 text boxes for what credit they receive for the sale.
Example.
$100,000 Sale
4 Employees are involved.
They each receive the total divided by 4.
So there is $100,000 in a text field. When I select 1 employee from the combo box it will place 100,000 into employee credit box 1.
If I select an employee from combo box 2, then each employee will have 50,000 in the credit text box by there name.
If I select an employee from combo box 3, then each of the 3 will have $33,000 in a text box by their name and so on.
Basically it takes the whole amount in box one and will divide the amount if an employee is selected in a dropdown, then place that amount into another text box. I am going to try to convert the above but if anyone has a better idea that would be great.
Thanks.