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 restore a database?
Colors in Excel are randomly changing
Page Breaks in Group Section not working when inside a subreport.
Microsoft Word can't find the DVZAddin.dll file and Excel can't find DVZXLAddin.dll File?
Foxpro 2.6a for Windows under XP Virtual Machine
Remote Desktop - security over public Internet
Looping through a combo box or a list
user.identity is not recognized in master page
Remote Desktop to XP PC - connection drops briefly
Need help with DAO recordset connection