I have a form with a subform. In the subform there is a datasheet where the
operator do edit, add, delete.
The sequence of the columns in the subform datasheet is set in design mode
by setting taborder. The operator can select a column and drag it with the
mouse to alter the sequence of the columns.
How can I prevent the user from dragging the columns and changing their
sequence?
Alternatively I could repair the sequence of columns every time the subform
is opened. How can I do this in vba?
Regards
Tore
Tore,
You could make a continous subform that looks just like a datasheet
subform.
You'll find you have a lot more flexibility with continuous than
datasheet. (Headers, Footer totals, colors, etc...)

Signature
hth
Al Campagna
Microsoft Access MVP
http://home.comcast.net/~cccsolutions/index.html
"Find a job that you love... and you'll never work a day in your life."
>I have a form with a subform. In the subform there is a datasheet where the
> operator do edit, add, delete.
[quoted text clipped - 13 lines]
>
> Tore