Welcome to the Excel Forum

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.

Please Register to Remove these Ads

Please Register to Remove these Ads



Reply
  #1  
Old 06-13-2009, 06:38 AM
champs champs is offline
Registered User
 
Join Date: 26 Feb 2009
Location: India
MS Office Version:Access
Posts: 46
champs is becoming part of the community
Can i Filter Date by using Check Box

Please Register to Remove these Ads

Hello everybody,

I have a pop-up multiple filter form where I like to add a check box, which would filter the date older than today. How do I configure the check box?

Thank you in advance.
Reply With Quote
  #2  
Old 07-14-2009, 06:41 AM
Kafrin Kafrin is offline
Registered User
 
Join Date: 16 Apr 2009
Location: Dorset, UK
MS Office Version:Excel 2003
Posts: 52
Kafrin is becoming part of the community
Re: Can i Filter Date by using Check Box

In the AfterUpdate event of the checkbox you need code something like:

If Me!ChkBx Then

Me.Filter = "DateField < Date()"
Me.FilterOn = True

Else

Me.Filter = ""
Me.FilterOn = False

End If
__________________
K

Software Matters: Excel Design
Reply With Quote


Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes 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 Off
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Forum Jump