For the life of me I cannot figure out how to do this for some reason.
I have two tables: (1)AwardTbl and (2)NAV_Tbl.
I am trying to retrieve the following information:
(1)Forfeited Units, (1)ForfeitureDa te, (2)NAV_Date, (2)NetAssetValu e in a single query.
I am trying to use the ForfeitureDate to get the NetAssetValue for the NAV_Date which the ForfeitureDate would use in it's calculation at the time of forfeiture.
Let me provide an example of a successful run:
User wants to find the forfeited units in the year 2013. All forfeitedunits with a date between 1/1/2013 and 12/31/2013 would be included, per employee.
The ForfeitureDate for Jane Smith's awards is 1/20/2013, for example, and she forfeited 5 units.
The NAV_Date used for that particular forfeiture date would be 12/31/2012 because we use the prior quarter's last day for the NAV_Date field, and let's give it a value of $1,000.
This is used, sometimes. I tried it using the forfeiture date instead of Date() and it didn't work.
The query would return:
I have two tables: (1)AwardTbl and (2)NAV_Tbl.
I am trying to retrieve the following information:
(1)Forfeited Units, (1)ForfeitureDa te, (2)NAV_Date, (2)NetAssetValu e in a single query.
I am trying to use the ForfeitureDate to get the NetAssetValue for the NAV_Date which the ForfeitureDate would use in it's calculation at the time of forfeiture.
Let me provide an example of a successful run:
User wants to find the forfeited units in the year 2013. All forfeitedunits with a date between 1/1/2013 and 12/31/2013 would be included, per employee.
The ForfeitureDate for Jane Smith's awards is 1/20/2013, for example, and she forfeited 5 units.
The NAV_Date used for that particular forfeiture date would be 12/31/2012 because we use the prior quarter's last day for the NAV_Date field, and let's give it a value of $1,000.
This is used, sometimes. I tried it using the forfeiture date instead of Date() and it didn't work.
Code:
DateAdd("s", -1, DateAdd("q", DateDiff("q", "1/1/1900", Date), "1/1/1900"))
Code:
Forfeiture Date: 1/20/2013 Forfeited Units: 5 NetAssetValue: $1,000 NAV_Date: 12/31/2013
Comment