Why the form_current does not trigger?

M

Min

Hi, I need put some code when recordset move. First, I put code in
Form_Current() event, it worked, but now, it does not work anymore. What's
could be the reason?

Private Sub Form_Current()

If Me.NewRecord Then
txtCompName = ""
End If

End Sub
 
B

Brian

Min said:
Hi, I need put some code when recordset move. First, I put code in
Form_Current() event, it worked, but now, it does not work anymore. What's
could be the reason?

Private Sub Form_Current()

If Me.NewRecord Then
txtCompName = ""
End If

End Sub
Look at the Properties window, Event tab for the form. Does it still say
[Event Procedure] against "On Current"? If not, then that is your problem.
 

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