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 Use .NET SqlBulkCopy to Import an Excel File into SQL Server
DropDownList Not Visible
Running Adprep on win2000 domain
Run application in safe mode (run key doesnot work?)
Front page 2003 removal ?
Problems loading an ocx
How to write a query in Ms-Access 2007 to compare two fields in two tables?
NoActiveDesktop under LOCAL_MACHINE gets reset to value of 1 after reboot. If NoActiveDesktop key under LOCAL_MACHINE is deleted, it is recreated and assigned a value of 1.
Installing Blackberry Enterprise server on Exchange server itself
Count rows of table between two dates for value in text box