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
Bash Script to eliminate 2 lines from lots of pages
In Perl, how do I check if a value already exist in the database
reCAPTCHA PHP not failing when nothing is entered; works fine when something is entered
Calculated variable on server...
Oracle 10g: How to index a column in a materialized view?
PayPal Express Checkout Module
In Sent Items, how can I tell if a message was sent with Read Receipt Requested
Binding Select (Multiple)
Firewall & Windows Security Center
updating sql database structure while keeping existing structure intact