PC Review


Reply
Thread Tools Rate Thread

Catch sort event from form

 
 
Sascha Hennig
Guest
Posts: n/a
 
      15th Jul 2005
hi.

i have a form and a query. the data of the query is shown in the form in
unbounded fields in the detail area as a list. someone can select a field
(which contain a field of the query) and press the sort button of access
(descending or ascending doesn't matter). after this the data is sorted. but
i need to no, which field and how is sorted to show the same order in a
report which can be selected to show in a menu.
How can i catch the sort event from access? Or is there another way to glean
the ordering caused by the access sort button?

sascha


 
Reply With Quote
 
 
 
 
=?Utf-8?B?S0FSTCBERVdFWQ==?=
Guest
Posts: n/a
 
      15th Jul 2005
It sorts on the field in focus - the one where the cursor is located.

"Sascha Hennig" wrote:

> hi.
>
> i have a form and a query. the data of the query is shown in the form in
> unbounded fields in the detail area as a list. someone can select a field
> (which contain a field of the query) and press the sort button of access
> (descending or ascending doesn't matter). after this the data is sorted. but
> i need to no, which field and how is sorted to show the same order in a
> report which can be selected to show in a menu.
> How can i catch the sort event from access? Or is there another way to glean
> the ordering caused by the access sort button?
>
> sascha
>
>
>

 
Reply With Quote
 
=?Utf-8?B?U3ByaW5rcw==?=
Guest
Posts: n/a
 
      15th Jul 2005
Sascha,

Perhaps someone more knowledgable about the inner workings of the Jet engine
can provide a way to capture this event, but you could also provide a custom
toolbar and a sorting method such that you control what happens, and take
appropriate action in your code.

Hope that helps.
Sprinks

"Sascha Hennig" wrote:

> hi.
>
> i have a form and a query. the data of the query is shown in the form in
> unbounded fields in the detail area as a list. someone can select a field
> (which contain a field of the query) and press the sort button of access
> (descending or ascending doesn't matter). after this the data is sorted. but
> i need to no, which field and how is sorted to show the same order in a
> report which can be selected to show in a menu.
> How can i catch the sort event from access? Or is there another way to glean
> the ordering caused by the access sort button?
>
> sascha
>
>
>

 
Reply With Quote
 
Sascha Hennig
Guest
Posts: n/a
 
      15th Jul 2005
No, i mean how can i catch the event to go on in vba to store the sort order
for later use.

> It sorts on the field in focus - the one where the cursor is located.
>
> "Sascha Hennig" wrote:
>
>> hi.
>>
>> i have a form and a query. the data of the query is shown in the form in
>> unbounded fields in the detail area as a list. someone can select a field
>> (which contain a field of the query) and press the sort button of access
>> (descending or ascending doesn't matter). after this the data is sorted.
>> but
>> i need to no, which field and how is sorted to show the same order in a
>> report which can be selected to show in a menu.
>> How can i catch the sort event from access? Or is there another way to
>> glean
>> the ordering caused by the access sort button?
>>
>> sascha
>>
>>
>>



 
Reply With Quote
 
=?Utf-8?B?U3ByaW5rcw==?=
Guest
Posts: n/a
 
      15th Jul 2005
Hi, Sascha.

Sometimes its so easy you miss it. The sort criteria will be in the form's
OrderBy property.

Hope that helps.
Sprinks

"Sascha Hennig" wrote:

> hi.
>
> i have a form and a query. the data of the query is shown in the form in
> unbounded fields in the detail area as a list. someone can select a field
> (which contain a field of the query) and press the sort button of access
> (descending or ascending doesn't matter). after this the data is sorted. but
> i need to no, which field and how is sorted to show the same order in a
> report which can be selected to show in a menu.
> How can i catch the sort event from access? Or is there another way to glean
> the ordering caused by the access sort button?
>
> sascha
>
>
>

 
Reply With Quote
 
Sascha Hennig
Guest
Posts: n/a
 
      15th Jul 2005
you are complete rigth. it was too easy to see, so i'd missed it completely.

thank you!

> Hi, Sascha.
>
> Sometimes its so easy you miss it. The sort criteria will be in the
> form's
> OrderBy property.
>
> Hope that helps.
> Sprinks
>
> "Sascha Hennig" wrote:
>
>> hi.
>>
>> i have a form and a query. the data of the query is shown in the form in
>> unbounded fields in the detail area as a list. someone can select a field
>> (which contain a field of the query) and press the sort button of access
>> (descending or ascending doesn't matter). after this the data is sorted.
>> but
>> i need to no, which field and how is sorted to show the same order in a
>> report which can be selected to show in a menu.
>> How can i catch the sort event from access? Or is there another way to
>> glean
>> the ordering caused by the access sort button?
>>
>> sascha
>>
>>
>>



 
Reply With Quote
 
eyal
Guest
Posts: n/a
 
      17th Jul 2005
????????????

?????????


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Catch the closing event of a form when clicked on X Michael Maier Microsoft Dot NET Compact Framework 2 27th Sep 2007 10:54 AM
Catch Key Down Event anywhere on Windows Form Ben Microsoft VB .NET 1 18th Nov 2006 04:51 PM
How to catch a form minimize event? Terry Olsen Microsoft VB .NET 8 15th Nov 2005 05:12 PM
Re: Catch a form minimize event Sergey Bogdanov Microsoft Dot NET Compact Framework 0 5th Sep 2005 09:33 AM
catch ActiveX event in outlook form =?Utf-8?B?Y2FzdGxlODAwMA==?= Microsoft Outlook Form Programming 1 7th Jun 2005 12:13 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:02 PM.