Access Events that occur on a form during different actions

I need to know which actions occur on a form.  

I know that when a form is opened: the order of events are Open, Load, Resize, Activate and Current.
When a form is closed: the order of events are Unload, deactivate, Close

What are the events that occur when using a button with (Next): DoCmd.GoToRecord , , acNext
Or a button with (Previous): DoCmd.GoToRecord , , acPrevious

proffittwareAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

DatabaseMX (Joe Anderson - Microsoft Access MVP)Database Architect / Systems AnalystCommented:
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
thenelsonCommented:
The current event but why not just place the code after the DoCmd.GoToRecord , , acNext Or DoCmd.GoToRecord , , acPrevious?
0
Scott McDaniel (Microsoft Access MVP - EE MVE )Infotrakker SoftwareCommented:
Much would depend on whether the form is dirty and such ... here's a list of the Order of Events for forms and such:

http://office.microsoft.com/en-us/access/HP051867611033.aspx

I'd think the GoToRecord would trigger this:

BeforeUpdate (form) ’ AfterUpdate (form) ’ Exit (control) ’ LostFocus (control) ’ RecordExit (form) ’ Current (form)

You might have some other events that fire depending on the Control and such.
0
Newly released Acronis True Image 2019

In announcing the release of the 15th Anniversary Edition of Acronis True Image 2019, the company revealed that its artificial intelligence-based anti-ransomware technology – stopped more than 200,000 ransomware attacks on 150,000 customers last year.

proffittwareAuthor Commented:
I will check these all out and let you know.
0
proffittwareAuthor Commented:
thenelson...
I have a form (with subforms) that I do not want the delete button (X) available except through a Delete button (command-AllowDeletions) I have created. I have many created command buttons for Add, Edit, Next, Previous etc. I needed to know the different events to make sure that I placed the AllowDeletions = False in the correct events.
0
thenelsonCommented:
Fair enough.

BTW: The form's Before delete confirm event will capture the built in delete button so You can do what you want with it.
0
proffittwareAuthor Commented:
thenelson:
<<Before delete confirm event >> 
what and where are you referring ?

If I  understand your explanation, that is what I have wanted to do...program the toolbar delete.
0
proffittwareAuthor Commented:
I found BeforeDelConfirm...thanks I will keep that in mind.
0
proffittwareAuthor Commented:
Thanks to everyone that responded...all the information was great ...sending me in the correct direction.
0
thenelsonCommented:
<<Before delete confirm event >> 
what and where are you referring ?

I know you found it but I just created this:
Form-Events.gif
0
DatabaseMX (Joe Anderson - Microsoft Access MVP)Database Architect / Systems AnalystCommented:
"Grade:  A - "Thanks to everyone that responded...all the information was great ...sending me in the correct direction."  "

You are welcome.

mx
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Access

From novice to tech pro — start learning today.