How do I get Access to automatically return a table value using 2 field critera? I'm assuming this is an SQL, but I can't figure out the coding. I need the query to return the % that an employee is vested based on the years of service (03 SY matching Vesting Schedule Column) so I can use it in another calculation in another query.
When I do this in Excel I use the VLookup and Match combined where the Match returns the column number and the VLookup then returns the %. I'm sure this is possible in Access, but can't figure it out. I'm not new to Access, but haven't used it in a few years and am a bit rusty.
The Vesting Schedule has the following fields:
Vest Name
1 (stands for 1 year of service - each year the % changes)
2 (2 years of service)
3 (etc to 10)
The service years are in a separate table linked via the Vest Name.
When I do this in Excel I use the VLookup and Match combined where the Match returns the column number and the VLookup then returns the %. I'm sure this is possible in Access, but can't figure it out. I'm not new to Access, but haven't used it in a few years and am a bit rusty.
The Vesting Schedule has the following fields:
Vest Name
1 (stands for 1 year of service - each year the % changes)
2 (2 years of service)
3 (etc to 10)
The service years are in a separate table linked via the Vest Name.