Confused about the different settings

odrap

Registered User.
Local time
Today, 07:24
Joined
Dec 16, 2008
Messages
156
I have an Orderform with a subOrderform. When the parent form opens for the first time, it may not permit to see any data as well in the Orderform as in the subOrderform, nor give the user the possiblity to make changes or enter new record without clicking the appropriate button.
So I want to see blanco fields in het parent form as well as in the subform by opening the form.
Do i reach this goal by putting the following code in the On Open event of the form:
Me.Dataentry = True
Me.allowAdditions = False
And what about the code in the click event of the buttons to
a) enter a new record
b) make changes to records
c) to delete records
d) to browse through the records?
And why do we see such a lot of dataentry forms, without a button to save new records or changes made?
 
Firstly you need to set Me.allowAdditions = True otherwise you will neve be able to add new records to your DB.

I would set those properties in the forms design mode.

There are default buttons available in Form Design mode for a) enter a new record b) make changes to records c) to delete records d) to browse through the records.

There is generally no need to explicitly save new records or changes to old records, as changes are saved as the user moves focus to a new record.
 
O,

Also:

Me.Dataentry = True

The above will let the form only enter new records, not edit existing ones.

Wayne
 
Sorry you will need to set Me.Dataentry = False.

If Dataentry sets the form to only allow entry of New data. By setting it to false it allows the user to view all records, but does not stop them from entering new records. The ability to entry new records is controlled by the allowAdditions property.
 

Users who are viewing this thread

Back
Top Bottom