So I have a bound form with a bound continuous subform in it. The form contains customer data and the continuous subform contains properties that this customer owns. On the same continuous subform there is a button that takes you to the property's details form, also bound.
On the subform, a user can simply add a new property by navigating to the last, empty record and adding new data. Exiting the record saves it in the appropriate table.
The problem comes when the user clicks on the command button to add property details before exiting (tabbing out of) the new property record in which case the property details form opens up with anew record, not related to the new property.
I know that this happens because the new property record has not been saved yet before clicking on the button to add details to it.
How can I prevent this form happening? How can I make sure that if the user click on this button to move on to the next record, that the new, partially entered record is saved?
Thanks
mafhobb
On the subform, a user can simply add a new property by navigating to the last, empty record and adding new data. Exiting the record saves it in the appropriate table.
The problem comes when the user clicks on the command button to add property details before exiting (tabbing out of) the new property record in which case the property details form opens up with anew record, not related to the new property.
I know that this happens because the new property record has not been saved yet before clicking on the button to add details to it.
How can I prevent this form happening? How can I make sure that if the user click on this button to move on to the next record, that the new, partially entered record is saved?
Thanks
mafhobb