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 Excel » General Discussion
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

MS Query - Filtering all dates greater than the current date



 
 
Thread Tools Display Modes
  #1  
Old March 26th, 2010, 08:17 PM posted to microsoft.public.excel.misc
BridgeBuilder
external usenet poster
 
Posts: 1
Default MS Query - Filtering all dates greater than the current date

I'd like to return only data by filtering a date field for any date past the
current date. I can filter using [is greater than ()] but it seems my only
choices are a date that is already in the field or a static date I enter. I
need to use an expression such as [CurrentDate] or [now()] but these don't
seem to work in Microsoft query as they do in Access or Crystal.

Microsoft Excel 2007
  #2  
Old March 26th, 2010, 08:58 PM posted to microsoft.public.excel.misc
Don Guillett[_2_]
external usenet poster
 
Posts: 607
Default MS Query - Filtering all dates greater than the current date

Sub filterplustoday()
ActiveSheet.Range("A1").AutoFilter field:=1, _
Criteria1:="" & Format(Date, "mm/dd/yyyy")
End Sub

--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"BridgeBuilder" wrote in message
...
I'd like to return only data by filtering a date field for any date past
the
current date. I can filter using [is greater than ()] but it seems my
only
choices are a date that is already in the field or a static date I enter.
I
need to use an expression such as [CurrentDate] or [now()] but these don't
seem to work in Microsoft query as they do in Access or Crystal.

Microsoft Excel 2007


 




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 02:54 AM.


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