I wish to add usage records to a table to show how many times each of the
buttons on my main menu are used.
I am envisaging a table which contains the following data:
User: Button: Time:
Fred Suppliers 10/10/04 03:54:45
The user will be the name of the individual who clicks on the button.
The button will store the name of the button pressed and the time field will
store the time when it was pressed.
There are approximately 50 buttons on the main menu with even more on
subforms and user specific menus.
The best way to do this that I can see is to add code to the OnClick event
in the following manner:
Private Sub Button1_Click()
RecordNavigation(1)
End Sub
Private Sub Button2_Click()
RecordNavigation(2)
End Sub
Function RecordNavigation(ButtonNo)
//////////////////////////////////////////////////////////////////////////
??How do I then write the three fields into the database
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ \\\\\\\\\\\\\\\\\\\\\\\\
End Function
Any help would be greatly appreciated.
John.
P.S. I appologise if this is not the ideal NG but I am happy to repost it
elsewhere if somebody can rcommend a more appropriate one.