Problem with Event Procedure

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
 
N

Neil

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top