S
Sammie
I am trying to look up Federal and State withholding taxes based on gross
wage. I have the following tables and fields:
tblEmployees: EmployeeID, EmployeeName
tblSueFed: FedID, FedTax, AtLeast, LessThan
tblSueState: StateID, StateTax, AtLeast, LessThan
tblBobFed: FedID, FedTax, AtLeast, LessThan
tblBobState: StateID, StateTax, AtLeast, LessThan
tblPaychecks: CheckID, EmployeeID, GrossWage
One employee is named Sue, and one is Bob. Each employee will have their
own 2 tax tables, one for Federal and one for State.
[AtLeast] and [LessThan] are currency values, minimum & maximum for the
FedTax figure.
I can’t figure out how to relate the EmployeeID to the appropriate two tax
tables for the lookup.
For each paycheck to Sue, the gross wage needs to look up the FedTax from
the SueFed table and StateTax from the SueState table, based on the gross
wage being greater than or equal to the [AtLeast] value and less than the
[LessThan] value.
Similarly, for each paycheck to Bob, the gross wage needs to look up the
FedTax from the BobFed table and StateTax from the BobState table, based on
the gross wage being greater than or equal to the [AtLeast] value and less
than the [LessThan] value. Etc.
Can anyone help me create the queries using Access 2003?
Thanks
Sammie
wage. I have the following tables and fields:
tblEmployees: EmployeeID, EmployeeName
tblSueFed: FedID, FedTax, AtLeast, LessThan
tblSueState: StateID, StateTax, AtLeast, LessThan
tblBobFed: FedID, FedTax, AtLeast, LessThan
tblBobState: StateID, StateTax, AtLeast, LessThan
tblPaychecks: CheckID, EmployeeID, GrossWage
One employee is named Sue, and one is Bob. Each employee will have their
own 2 tax tables, one for Federal and one for State.
[AtLeast] and [LessThan] are currency values, minimum & maximum for the
FedTax figure.
I can’t figure out how to relate the EmployeeID to the appropriate two tax
tables for the lookup.
For each paycheck to Sue, the gross wage needs to look up the FedTax from
the SueFed table and StateTax from the SueState table, based on the gross
wage being greater than or equal to the [AtLeast] value and less than the
[LessThan] value.
Similarly, for each paycheck to Bob, the gross wage needs to look up the
FedTax from the BobFed table and StateTax from the BobState table, based on
the gross wage being greater than or equal to the [AtLeast] value and less
than the [LessThan] value. Etc.
Can anyone help me create the queries using Access 2003?
Thanks
Sammie