A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Filter



 
 
Thread Tools Display Modes
  #1  
Old May 4th, 2010, 07:36 PM posted to microsoft.public.access.forms
PJ
external usenet poster
 
Posts: 265
Default Filter

I have a filter on a form based off of multiple criteria. Once you put the
criteria I have a command button to search for this criteria based on what
you put in the unbound fields. Once the filter is placed it is outputting
the correct information but I want it th order by the launch date in
descending order. Here is my code me.orderby = "[launch] desc". I guess I am
placing the event on the incorrect event. Do I put it on the form or the
text box and what event?

Thanks!!!
Ads
  #2  
Old May 4th, 2010, 09:21 PM posted to microsoft.public.access.forms
fredg
external usenet poster
 
Posts: 4,386
Default Filter

On Tue, 4 May 2010 11:36:10 -0700, PJ wrote:

I have a filter on a form based off of multiple criteria. Once you put the
criteria I have a command button to search for this criteria based on what
you put in the unbound fields. Once the filter is placed it is outputting
the correct information but I want it th order by the launch date in
descending order. Here is my code me.orderby = "[launch] desc". I guess I am
placing the event on the incorrect event. Do I put it on the form or the
text box and what event?

Thanks!!!


After setting the OrderBy property also set OrderByOn to True.

me.orderby = "[launch] desc"
Me.OrderByOn = True
--
Fred
Please respond only to this newsgroup.
I do not reply to personal e-mail
  #3  
Old May 5th, 2010, 03:41 AM posted to microsoft.public.access.forms
PJ
external usenet poster
 
Posts: 265
Default Filter

Thanks Fred. That is still not working for me. Do I put that on the form or
on the text box in the form

"fredg" wrote:

On Tue, 4 May 2010 11:36:10 -0700, PJ wrote:

I have a filter on a form based off of multiple criteria. Once you put the
criteria I have a command button to search for this criteria based on what
you put in the unbound fields. Once the filter is placed it is outputting
the correct information but I want it th order by the launch date in
descending order. Here is my code me.orderby = "[launch] desc". I guess I am
placing the event on the incorrect event. Do I put it on the form or the
text box and what event?

Thanks!!!


After setting the OrderBy property also set OrderByOn to True.

me.orderby = "[launch] desc"
Me.OrderByOn = True
--
Fred
Please respond only to this newsgroup.
I do not reply to personal e-mail
.

 




Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 06:52 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
Copyright 2004-2019 OfficeFrustration.
The comments are property of their posters.