Naming a datasheet form column heading

J

John Baker

Is there anyway to have the name on a datasheet form column heading to be
that of the contents of a textbox on a form?
Or is there anyway to change the column heading at run time?


Any help greatly appreciated.

John Baker
(e-mail address removed)
 
W

Wayne Morgan

The column heading on a form in datasheet view comes from one of two places.

It will come from the label ATTACHED to the control. If the label has become detached from
the control, the name comes from the name of the control.

You can move the label and control separately, but if you delete the label or move it to a
different section of the form it will be come detached.

To create a new label that is attached to the control:

1) Create a new label or use the old one if you still have it
2) Cut (Ctrl+X) the label
3) Select the control
4) Paste (Ctrl+V) the label

The label should show up next to the control and once again be attached to it.
 
W

Wayne Morgan

The column heading on a form in datasheet view comes from one of two places.

It will come from the label ATTACHED to the control. If the label has become detached from
the control, the name comes from the name of the control.

You can move the label and control separately, but if you delete the label or move it to a
different section of the form it will be come detached.

To create a new label that is attached to the control:

1) Create a new label or use the old one if you still have it
2) Cut (Ctrl+X) the label
3) Select the control
4) Paste (Ctrl+V) the label

The label should show up next to the control and once again be attached to it.
 
H

Hugh O'Neill

John said:
Is there anyway to have the name on a datasheet form column heading
to be that of the contents of a textbox on a form?
Or is there anyway to change the column heading at run time?


Any help greatly appreciated.

John Baker
(e-mail address removed)


You may we better off using a continuous Form rather than datasheet
Form. You have much better control over it and what your users are
allowed to do. And you can make it look like the datasheet style if
you really want to.

hth

Hugh
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top