hi,
Elvis72 wrote:
> I have seen how to make it where it is just a form, but if they go in and
> modify a related subform then I need that to show up too.
Add the timestamp field to each table. Use the Before Update event in
your subforms to set the timestamp.
Use a union query to get the history:
SELECT TableName, ID, Timestamp FROM
(
SELECT 'table1' AS TableName, ID, Timestamp FROM table1
UNION ALL
....
UNION ALL
SELECT 'tableN', ID, Timestamp FROM tableN
) Q
ORDER BY Timestamp
This might be overkill. In the case you don't need that much
information, just store the timestamp in your main table. Use the Before
Update event in your subforms to set the value in your main table, e.g.
SQL = "UPDATE mainTable SET timestamp = Now() WHERE Id = " & _
Me.Parent.Form![ID]
CurrentDb.Execute SQL, dbFailOnError
mfG
--> stefan <--
|