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
How to open and close an excel file from Scheduled Tasks
Home folder quotas - best method?
How can I run/emulate IE 7 to access a site that only works for IE7
Batch file that does a file search and then if found executes a specific command on the file
(NEWBIE)Visual Studio (Concurrent I/O operations error) (NEWBIE)
Microsoft SQL Server 2005 Service Pack 3 Failover Clustering (KB955706).
I have a batch file I would like to make more Professional.
Internet explorer wont open - After removing rouge malware
Generate report for invoice tracking
Excel VBA count numbers and copy cell