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
Fonts not appearing in MSPaint
Moving shared printers from one server to a new one
Access 2002 Navigation
How do you combine 2 Outlook.NK2 into one?
Change Log on data
How do I migrate local users accounts from Windows Server 2003 R2 to a new one?
2 conditions where
ODBC Error on Refreshing a QueryTable
Excel Average Need to ignore #n/a values
Tree command in DOS