Roger That RSTaylor . . .
I'll try and step you thru it. Be aware ... when a db opens an [blue]AutoExec[/blue] macro runs 1st and we will only be running and [blue]Update SQL[/blue] (whithin the macro).
[blue]
[tt]Table Setup
***********[/tt][/blue]
[ol][li]Open a new table in design view and enter the following:
[tt]
FieldName DataType
--------- --------
LogID [blue]AutoNumber[/blue]
DbOpened [blue]Date/Time[/blue] General Tab Format:[blue]GeneralDate[/tt][/blue][/li]
[li]On the toolbar select the [blue]Indexes[/blue] button. The Indexes window opens. If there is a line for LogID, delete that line.[/li]
[li]Be sure the cursor is on the [blue]LogID[/blue] line in the table window and hit the [blue]Primary Key[/blue] toolbar button. A key should show to the left of [blue]LogID[/blue].[/li]
[li]Save the table as [blue]tblLogDbOpened[/blue].[/li]
[li]Be sure to check all spelling! Don't need this kind of error![/li][/ol]
[blue]
[tt]Macro Setup
***********[/tt][/blue]
Open a new macro in design view and enter the following:
[tt]Macro Name Action
---------- ------
UpdateDbLog [blue]RunSQL[/blue][/tt]
SQL Statement [blue]INSERT INTO tblLogDbOpened ( DbOpened ) Values (Now());[/blue]
Use Transaction [blue]No[/blue]
Save the macro as [blue]
AutoExec[/blue] and close.
Thats it ... perform your testing!
See Ya! . . . . . .
Be sure to see thread181-473997 [blue]Worthy Reading![/blue]
![[thumbsup2] [thumbsup2] [thumbsup2]](/data/assets/smilies/thumbsup2.gif)
Also faq181-2886 [blue]Worthy Reading![/blue]
![[thumbsup2] [thumbsup2] [thumbsup2]](/data/assets/smilies/thumbsup2.gif)