T
Tony Wainwright
Hi guys,
I have an Access2K application. On many of the forms there are subforms that contain related information. The form's recordsource is the Master table and the sub form's recordsource is the related table.
Some of these subforms do not display this information in a logical order e.g. On 1 form I have a unit no which I would like to see in numerical order, unfortunately this is not the case. To get round this I have used the following code in the Form_Current event of the sub form
Me.OrderBy = "UnitNo"
Me.OrderByOn = True
This does order the sub form, however it doesn't allow me to enter/edit information contained within it.
My question is how can I force the order of a sub form and still allow data to be input or amended?
Cheers
Tony
I have an Access2K application. On many of the forms there are subforms that contain related information. The form's recordsource is the Master table and the sub form's recordsource is the related table.
Some of these subforms do not display this information in a logical order e.g. On 1 form I have a unit no which I would like to see in numerical order, unfortunately this is not the case. To get round this I have used the following code in the Form_Current event of the sub form
Me.OrderBy = "UnitNo"
Me.OrderByOn = True
This does order the sub form, however it doesn't allow me to enter/edit information contained within it.
My question is how can I force the order of a sub form and still allow data to be input or amended?
Cheers
Tony