Hi!
First of all, I am not a native English speaker so my apologies for my grammar and vocabulary. Also I am pretty new to Access so again my apologies if the terms I'm using are not too accurate :S
The issue I'm facing is related to Access 2010.
I have a Navigation form with to 2 "subforms" embedded (I call them "subforms" because I am assuming that they are subforms with respect to the main Navigation form, however they are really main forms): "Leads" and
"Colegios". There are 2 navigation buttons in the Navigation form that open each one of them.
In each subform, I have created a button to close it (the "X" button is disabled). Attached to this button there is some code to control whether there was a record being edited or not, in case a record was being edited
a Msgbox is displayed asking whether to go on and close the form or to return to the record and keep on editing it.
If I open one of these subforms by itself, this "close" button works fine, but when I open them from within the Navigation form it is useless for 2 reasons:
- If I am currently in the Lead subform and I press the "Colegios" navigation button, the "colegios" subform replaces the "leads" one without controlling anything about records that were being edited.
- If I press the "close" button I inserted, it closes not only the form the button is in but also the navigation form and I can't go on from there and I have to close and open Access again. This is because I have hidden
the navigation pannel and the ribbon.
Is there any way I can apply this code to control the edition of a record to a Navigation button to prevent a form from exiting it if a record is currently being edited?
I hope I have explained myself properly.
Thanks!