troubleshooting Question

Before Insert event is not firing in Access 2010 sub form

Avatar of thresholds
thresholdsFlag for United States of America asked on
Microsoft Access
22 Comments1 Solution3184 ViewsLast Modified:
I have a main form and sub form and I need to validate the data in the sub form when moving to another record in the subform or leaving the sub form if the user is done.  Microsoft documentation clearly says that the order of events for a new record in a sub form fires the events in the following order - Current (form)  Enter (control)  GotFocus (control)  BeforeInsert (form)  AfterInsert (form).  I want to use the before insert since it has a cancel option.  All works as advertised except the before insert event never fires.  I tried the before update event but it fires too often – before there is any data to validate.
The sub form is set to show continuous forms.
Any ideas?
Thanks

Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 22 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 22 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros