Geordie2008
Registered User.
- Local time
- Today, 19:58
- Joined
- Mar 25, 2008
- Messages
- 177
Good afternoon all,
I have the following challenge (!)
I have 200 employee's data which is historised for changes.
When a change is made to an employee (using a form) the change is date stamped and held in an audit table.
I have been challenged to do the following:
Run as-at reports.
In order to do this I believe I need a query which will filter on the "as-at" date chosen by the user.
If the user picks the date: 01 Jun 08 I want to be able to bring back the following:
For each employee (I have a ID autonumber for each employee), the row of data that is the MAX of all data where the "Record Date" is equal to or lower than the "Filter by" report date.
e.g.
REFER TABLE 1 of attached doc
If the report is run as-at: 10 Jun, I would like to return:
REFER TABLE 2 of attached doc
If it is run as at 18th Jul, I would like to return:
REFER TABLE 3 of attached doc
The filter date is on a form called [Forms]![frmAsAt]![FilterDate]
Can someone please help me with the syntax I need to put within the "criteria" section of my query?
Thank you,
Mandy
I have the following challenge (!)
I have 200 employee's data which is historised for changes.
When a change is made to an employee (using a form) the change is date stamped and held in an audit table.
I have been challenged to do the following:
Run as-at reports.
In order to do this I believe I need a query which will filter on the "as-at" date chosen by the user.
If the user picks the date: 01 Jun 08 I want to be able to bring back the following:
For each employee (I have a ID autonumber for each employee), the row of data that is the MAX of all data where the "Record Date" is equal to or lower than the "Filter by" report date.
e.g.
REFER TABLE 1 of attached doc
If the report is run as-at: 10 Jun, I would like to return:
REFER TABLE 2 of attached doc
If it is run as at 18th Jul, I would like to return:
REFER TABLE 3 of attached doc
The filter date is on a form called [Forms]![frmAsAt]![FilterDate]
Can someone please help me with the syntax I need to put within the "criteria" section of my query?
Thank you,
Mandy