Choose order by (1 Viewer)

gazsharpe101

Registered User.
Local time
Today, 16:07
Joined
Oct 23, 2007
Messages
47
Hi everyone,

I am looking for some help with a particular problem. I have a report based on a query and at the moment it is ordered by a particular column.

What I want to be able to happen is that the user chooses what they want the query (and subsequently) the report to be ordered by before they run the report by means of a combo box or something like that.

Is this possible in anyway?

Thanks.
Gareth.
 

ted.martin

Registered User.
Local time
Today, 15:07
Joined
Sep 24, 2004
Messages
743
Only by replacing the query with an SQL statement in code and some form of textbox/combo box to set the OrderBy parameter from the calling form or sub.
 
Last edited:

gazsharpe101

Registered User.
Local time
Today, 16:07
Joined
Oct 23, 2007
Messages
47
I figured it would be something like this involving SQL. Do you have any idea how this is done as I'm not really sure.

Thank you for your reply.
 

ted.martin

Registered User.
Local time
Today, 15:07
Joined
Sep 24, 2004
Messages
743
zip and attach the db and I will take a look for you.

How do you want the OrderBy to be selected?
 

Users who are viewing this thread

Top Bottom