Microsoft
Software
Hardware
Network
Question : Return a value if date field is equal to the present date.
I have an access query that has a date field "Order_Date". I would like to add a new field to this query that examines "Order_Date" and if the date is equal to the present date or previous day return a value of "Y" or "N"
Thanks
Answer : Return a value if date field is equal to the present date.
If using the GUI query builder, then the expressions is
IIF(DateDiff("d", Order_Date, Date()) IN (0,1), 'Y', 'N')
Random Solutions
Forefront TMG Client Access
How to use Outlook VBA to select messages in an Outlook folder and run VBA macro
Why won't Exchange Transport service start in Exchange 2007 on our SBS 2008 server ?
Lable (and other elements) not appearing in my code behind
VMware Workstation 7.1 Won't Install
How to block USB Disks using Windows 2008 R2 Domain Controller Group Policy
Exchange database backup failing with Arcserve v15
Does OpenOffice allow Windows 7 preview pane to preview .doc and .xls files?
Cisco ASA SIte to Site NAT Options.
How do i factory reset netvanta 1524st switch from the cli command line?