Hi,
I have set up an audit table to track any changes to a Risk Assesment. Table structures below:
tblAuditRisk
ID PK
LoginName
TableName
RecordPKey
FieldName
OrigValue
NewValue
Date
tblRisk
RiskRef PK
RiskDesc
ReviewFreq
DeptRef
Process
AssessorRef
Task
PersonAtRisk
Comments
Method
ControlMeasure
Impact
Likelihood
What I am trying to do is write a query which would list each Risk Assesment from tblRisk (current assessment) & show all the amendents to it & base a report on the query result.
I ideally would like to be able to list the changed fields value under the respective column for that field in tblRisk probably the report output something like this:
RiskREF DeptRef RiskDesc ReviewFreq DeptRef Process Rest Of Fields>>>>>>>>>
2 1 Fall from height. 12 10 Cleaning windows first floor.
Risk Amendments:
Date 28/05/2005 Cleaning windows first & second floor.
10/01/2005 Danger of falling.
Next assessment etc................
etc.........
Thanks in advance.
Tim
I have set up an audit table to track any changes to a Risk Assesment. Table structures below:
tblAuditRisk
ID PK
LoginName
TableName
RecordPKey
FieldName
OrigValue
NewValue
Date
tblRisk
RiskRef PK
RiskDesc
ReviewFreq
DeptRef
Process
AssessorRef
Task
PersonAtRisk
Comments
Method
ControlMeasure
Impact
Likelihood
What I am trying to do is write a query which would list each Risk Assesment from tblRisk (current assessment) & show all the amendents to it & base a report on the query result.
I ideally would like to be able to list the changed fields value under the respective column for that field in tblRisk probably the report output something like this:
RiskREF DeptRef RiskDesc ReviewFreq DeptRef Process Rest Of Fields>>>>>>>>>
2 1 Fall from height. 12 10 Cleaning windows first floor.
Risk Amendments:
Date 28/05/2005 Cleaning windows first & second floor.
10/01/2005 Danger of falling.
Next assessment etc................
etc.........
Thanks in advance.
Tim