forms

jwf

Registered User.
Local time
Today, 10:04
Joined
Dec 5, 2012
Messages
18
I have a simple form, the default view is set to continuous forms. As soon as I start to input data the next new form pops up. how do I prevent the next new form from coming up until I have entered all data in the first form?
 
1. in the form onload event put the following code
Code:
me.allowadditions=me.recordset.recordcount=0

2. create a new unbound button in the detail section with following code in the click event (note this could also be used as a way for the user to confirm saving the record)
Code:
me.allowadditions=true

3. in the first control your user completes in the detail section put the following code in the change event (or all the controls to be on the safe side)
Code:
me.allowadditions=false
 

Users who are viewing this thread

Back
Top Bottom