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
Access Form with labels can't cycle through labesl in vba code. Original labels recognized but not newly added labels.
Win 7, running 32bit software on a 64bit machine
Unable to set break point
How do you/Can you use data from multiple reports and put them on one report
Best way to push out printers to domain users?
How to zero or delete transactions of purchases, sales and inventory in Dynamics Great Plains
From excel 2003 to 2007 problem
Error updating public folder with free-busy information on virtual machine exchange 2003
acOLECreateLink
Access Query "Not equal to" in Query