G
Guest
I need to know how to count the event that happens below and record it either
to a table or something so that I can see if certain items are frequently
used or can be slated to obsolete. Seeing the commands down below how would
I insert a counting feature? Count table name is "Counter" with field name
as "Scrap by Model". Also is there any difference in recording this on
buttons, queries, reports, etc. or can I use the same command lines for
counting? Thanks.
Private Sub Command11_Click()
On Error GoTo Err_Command11_Click
Dim stDocName As String
stDocName = "Scrap by Model"
DoCmd.OpenReport stDocName, acPreview
Exit_Command11_Click:
Exit Sub
Err_Command11_Click:
MsgBox Err.Description
Resume Exit_Command11_Click
End Sub
to a table or something so that I can see if certain items are frequently
used or can be slated to obsolete. Seeing the commands down below how would
I insert a counting feature? Count table name is "Counter" with field name
as "Scrap by Model". Also is there any difference in recording this on
buttons, queries, reports, etc. or can I use the same command lines for
counting? Thanks.
Private Sub Command11_Click()
On Error GoTo Err_Command11_Click
Dim stDocName As String
stDocName = "Scrap by Model"
DoCmd.OpenReport stDocName, acPreview
Exit_Command11_Click:
Exit Sub
Err_Command11_Click:
MsgBox Err.Description
Resume Exit_Command11_Click
End Sub