M
Maurita
Hi all, hope someone can help me with a problem which I have been
researching and have not found an answer to. I am working on a Salary
and Tax form which pulls salary and tax info from a table with the same
name. I have a combo box (Combo35) that pulls info from the Employee
Table (EmployeeID, LastName, FirstName, County, Wage). This
information I place in various text boxes (=Combo35.Column(?)) which
works great. The problem I am having is that I need to pull the
"County" from Combo35 and place it in the CountyTax text box which
calculates a value based on which County was selected in Combo35. I
have written the following code under the After Update event in the
HoursWorked text box. When the user types in the hours the total is
automatically calculated in a TotalPay field. I thought that having
the following code in the same area would be where it was needed.
Unfortunately, the code for the CountyTax isn't working. Can someone
please help me figure out what I am missing. I also need to round to
two decimal points but have not worked on this because I want to get
the code to work first. Thank you in advance for any help you can
give. Maurita Searcy
County Criteria: Lawrence County Tax = 0.0100
Morgan County Tax = 0.0127
If Me!Combo35.Column(4) = "Lawrence" Then
CountyTax = TotalPay / 0.0100
ElseIf Me!Combo35.Column(4) = "Morgan" Then
CountyTax = Total Pay / 0.0127
researching and have not found an answer to. I am working on a Salary
and Tax form which pulls salary and tax info from a table with the same
name. I have a combo box (Combo35) that pulls info from the Employee
Table (EmployeeID, LastName, FirstName, County, Wage). This
information I place in various text boxes (=Combo35.Column(?)) which
works great. The problem I am having is that I need to pull the
"County" from Combo35 and place it in the CountyTax text box which
calculates a value based on which County was selected in Combo35. I
have written the following code under the After Update event in the
HoursWorked text box. When the user types in the hours the total is
automatically calculated in a TotalPay field. I thought that having
the following code in the same area would be where it was needed.
Unfortunately, the code for the CountyTax isn't working. Can someone
please help me figure out what I am missing. I also need to round to
two decimal points but have not worked on this because I want to get
the code to work first. Thank you in advance for any help you can
give. Maurita Searcy
County Criteria: Lawrence County Tax = 0.0100
Morgan County Tax = 0.0127
If Me!Combo35.Column(4) = "Lawrence" Then
CountyTax = TotalPay / 0.0100
ElseIf Me!Combo35.Column(4) = "Morgan" Then
CountyTax = Total Pay / 0.0127