J
Jerry Crosby
I want to create a form with, say 4 columns, set up in Datasheet view. The
user needs to be able to sort the data on any of the four columns.
I know that if you put the cursor in a column, then click the "A-to-Z" or
"Z-to-A" button in the toolbar, it will sort by that column.
Rather than instruct the user to go to the toolbar icon, I'd like to add
buttons to the form that might say, "Sort Last Name", "Sort Age", "Sort
Zip", etc.
However, any button I place in the form header or page header doesn't show
up when I set the view to Datasheet view. So, question #1 is: Do I have to
use continuous forms view in order to use buttons in the header?
Second question: what is the code I'd put behind the button to sort by the
selected column? I believe it is the "order" function, but that's where my
knowledge stops!
thanks.
Jerry
user needs to be able to sort the data on any of the four columns.
I know that if you put the cursor in a column, then click the "A-to-Z" or
"Z-to-A" button in the toolbar, it will sort by that column.
Rather than instruct the user to go to the toolbar icon, I'd like to add
buttons to the form that might say, "Sort Last Name", "Sort Age", "Sort
Zip", etc.
However, any button I place in the form header or page header doesn't show
up when I set the view to Datasheet view. So, question #1 is: Do I have to
use continuous forms view in order to use buttons in the header?
Second question: what is the code I'd put behind the button to sort by the
selected column? I believe it is the "order" function, but that's where my
knowledge stops!
thanks.
Jerry