MS Query - Filtering all dates greater than the current date

B

BridgeBuilder

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
 
D

Don Guillett

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

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top