This worked fine until I had to add "Marital Status" to my tblpayrolltaxes. Now I am getting the "Enter Parameter Value", "tblEmployee.Marital Status", on run.
I have Marital Status as the join which calculates correctly when I click Ok.
SELECT tblpayrolltaxes.MyUCA, tblpayrolltaxes.[Percent of Withholding], tblEmployees.DemoClientID, tblEmployees.[Basic Salary], tblEmployees.[Total of pay check], [tblEmployees]![Total of pay check]*[tblpayrolltaxes]![Percent of Withholding] AS [Recommended ded], IIf([tblEmployees].[Marital Status]="Married" And [Basic Salary]>17100,[Recommended ded],0) AS [Married Federal tax], IIf([tblEmployee].[Marital Status]="Single" And [Basic Salary]>6400,[Recommended ded],0) AS [Single Federal tax], tblEmployees.[Exempt from Taxes], IIf([Exempt from Taxes]=True,0) AS [Exempt Federal tax], [tblEmployees]![Extra Fed Tax]/[tblEmployees]![Salary Pay Period] AS [Extra Fed Taxes], [Married Federal tax]+[Single Federal Tax]+[Extra Fed Taxes] AS [Federal Tax]
FROM tblpayrolltaxes INNER JOIN tblEmployees ON tblpayrolltaxes.[Marital Status] = tblEmployees.[Marital Status]
WHERE (((tblpayrolltaxes.MyUCA)=16));
I tried several things but can't seem to find the fix. Does anyone see anything.
I have Marital Status as the join which calculates correctly when I click Ok.
SELECT tblpayrolltaxes.MyUCA, tblpayrolltaxes.[Percent of Withholding], tblEmployees.DemoClientID, tblEmployees.[Basic Salary], tblEmployees.[Total of pay check], [tblEmployees]![Total of pay check]*[tblpayrolltaxes]![Percent of Withholding] AS [Recommended ded], IIf([tblEmployees].[Marital Status]="Married" And [Basic Salary]>17100,[Recommended ded],0) AS [Married Federal tax], IIf([tblEmployee].[Marital Status]="Single" And [Basic Salary]>6400,[Recommended ded],0) AS [Single Federal tax], tblEmployees.[Exempt from Taxes], IIf([Exempt from Taxes]=True,0) AS [Exempt Federal tax], [tblEmployees]![Extra Fed Tax]/[tblEmployees]![Salary Pay Period] AS [Extra Fed Taxes], [Married Federal tax]+[Single Federal Tax]+[Extra Fed Taxes] AS [Federal Tax]
FROM tblpayrolltaxes INNER JOIN tblEmployees ON tblpayrolltaxes.[Marital Status] = tblEmployees.[Marital Status]
WHERE (((tblpayrolltaxes.MyUCA)=16));
I tried several things but can't seem to find the fix. Does anyone see anything.