Dynamically set column order on datasheet

boblarson

Smeghead
Local time
Today, 13:56
Joined
Jan 12, 2001
Messages
32,040
Hi guys!

Does anyone know if there is a way to dynamically set a datasheet's column order without changing the recordsource? I can't think of any code that would do it, but maybe someone has done it before.

What I have is a subform displayed in datasheet view and when the main form is opened, it is opened by selecting one of four departments and clicking a button. Now, of course three of those departments want to see the columns in a certain order and the fourth wants it in another order.

My boss (the new one with my new Access developer position) has told me the customer wants this "dynamic" view and I am not sure it can be done without setting a completely different query for the recordset.

So, anyone got any ideas?
 
Also, take a look at my class attendance prototype I uploaded in one of my thread, which the datasheet will try to dynamically sort based on the date.

It may give you some ideas.

HTH.
 
Bob,

I don't think DataSheets let you mess around like that.

If a continuous form will do, you can do all of those things somewhat easily.
Does it really have to be a DataSheet?

Wayne
 
WayneRyan,

Actually, it does. It's simply not documented. (Or at least not well-documented).
 
Bob,

I don't think DataSheets let you mess around like that.

If a continuous form will do, you can do all of those things somewhat easily.
Does it really have to be a DataSheet?

Wayne

It does and the article WAZZ provided appears to show that it actually can be done. So, I'll check it out.
 

Users who are viewing this thread

Back
Top Bottom