Microsoft
Software
Hardware
Network
Question : Access / SQL / VBA / filter records on form according to a date field
hello,
i'm using VBA code to define a string that uses me to define a form's filter property.
one of the form's underlying fields is "DueDate" (of type Date/Time).
i understand i need to write an SQL WHERE clause to apply the filter (without the 'WHERE').
what is the syntax to say:
show me only records where [DueDate] <= Today's date?
show me only records where [DueDate] > Today's date?
thanks :)
Answer : Access / SQL / VBA / filter records on form according to a date field
me.filter = "[DueDate] <= Date()"
me.filteron = true
me.filter = "[DueDate] > Date()"
me.filteron = true
Random Solutions
Error in MOSS Shared Serveice Job
Looking for Credential Tiles
SBS2008 Drive and printer mappings.
Problem with changing Record Source in Access
use the cast or convert function on a varchar field
Create an OLAP data cube
Recall messages stuck in Outbox
How do I change the currentproject.connection during run-time (or startup)?
Excel VBA - paste value into active cell and run addin against it
Moving sql server mdf file