Re:Re:How to limit the input in a subform to an exact number of records.
It is all there in the first reply.... I guess you read to fast ;-)
1. Record object is always called Record1, and they cannot be renamed. The slight confusion is that when you create a form or a subsequent subform, the RECORD object is initially named Record...BUT! It will change name the first time you close and reload the document. Why? Only God knows, but it has been like this forever.
So for all practical programming reasons, you need to work with Record1 only!!!
So the RECORD object of the Main Form is Record1. Each clone of the Record object in a Subform is called Record1 and in any subsequent Subform.
Ex. If you have a form with 3 subforms, with 10, 15 and 20 rows, you will have 46 objects named Record1 in your form.
Lets for simplicity put the subforms under one another on the form. The the last Record object in each Subform would be
PS! If you move the subforms in the form so they change place in the object order, this will no longer apply!
2. All objects in DataEase Object model gets automatically named, but some objects can be renamed and some can't.
Forms, Record and TabControls cannot.
Form will be named Document Name.
Sumbforms will be named the same as the relationship they are created on.
Record will always be named Record1 (after first reload of document).
TablControls will always be named Tab Control but with a incremental number
The best way to find the object names is in the OML editor. There you see the order and the names.