Problem with Event Procedure

  • Thread starter Thread starter John R. Youngman
  • Start date Start date
J

John R. Youngman

Hi. I need to track when Members access the database to update their
personal information. I tried to set up a command button which enters the
current date (in a field named [VisitDate]) after the visitor's information
is displayed on the screen. The visitor clicks on the command button with
the following event procedure:

Private Sub Command24_Click()
On Error GoTo Err_Command24_Click

Me.VisitDate = Now

Exit_Command24_Click:
Exit Sub

Err_Command24_Click:
MsgBox Err.Description
Resume Exit_Command24_Click

End Sub

What happens is I get an error message: Method or data member not found.

Any ideas, or a better way to create this log?

TIA

John
 
John,

Are you sure the text box on the form is named VisitDate and is this field
on the same form as the command button?

Neil.
 
Back
Top