Setting Code to execute when user changes records

B

Bernard Johns

I want to execute line of code whenever the user navigates records. For example: If the user moves from record 1 to record 2 navigation buttons, then the code would fire. If the user then navigates from record 2 to record 3, the code would fire again. What event could I embed the code into, as there is no guarentee which command or textbox will have focus when the user navigates records?
 
R

Rick B

That is what the OnCurrent event is for. It executes when the focus moves
from one record to another.

Rick B

I want to execute line of code whenever the user navigates records. For
example: If the user moves from record 1 to record 2 navigation buttons,
then the code would fire. If the user then navigates from record 2 to record
3, the code would fire again. What event could I embed the code into, as
there is no guarentee which command or textbox will have focus when the user
navigates records?
 
B

Bernard Johns

Thank you. I always appreciate the quick and professional responses from other MSDN users.
 

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