Hello All,
I am trying to compare an expiration date that I store against today's
date plus 4 years. If the expiration date is greater (farther out)
then today's date + 4 years then I want to use today+4 versus the
actual expiration date, otherwise the expiration date will be used.
Any help would be appreciated.
-----------
ExpYr: IIf(DatePart("yyyy",[tblSecurity].
[ExpDate])>Format(DateAdd("yyyy",4,Now()),"mm/dd/
yyyy"),Format(DateAdd("yyyy",4,Now()),"mm/dd/yyyy"),DatePart("yyyy",
[tblSecurity].[ExpDate])) 1 2236
ExpYr:datevalue(iif(datediff("d",dateadd("yyyy",4, now),[tblSecurity].[ExpDat
e])<0,dateadd("yyyy",4,now),[tblSecurity].[ExpDate]))
<sr**********@gmail.comwrote in message
news:11**********************@i38g2000prf.googlegr oups.com...
Hello All,
I am trying to compare an expiration date that I store against today's
date plus 4 years. If the expiration date is greater (farther out)
then today's date + 4 years then I want to use today+4 versus the
actual expiration date, otherwise the expiration date will be used.
Any help would be appreciated.
-----------
ExpYr: IIf(DatePart("yyyy",[tblSecurity].
[ExpDate])>Format(DateAdd("yyyy",4,Now()),"mm/dd/
yyyy"),Format(DateAdd("yyyy",4,Now()),"mm/dd/yyyy"),DatePart("yyyy",
[tblSecurity].[ExpDate])) This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: lofty |
last post by:
Dear Lord,
I'm trying to code a drop down for a date entry that gives
the user the option of the current date plus the dates of
the last 7 days.
<%
for i = -7 to -1
Response.write...
|
by: Řyvind Isaksen |
last post by:
Hi!
I need to add 1 day to a specific date.
The date have is stored in a variable called "DateOld". The value of the
variable have this syntax: mm.dd.yyyy.
The new date is the variable called...
|
by: Brandon |
last post by:
Greetings,
I am having a problem getting a SQL statement that is functional in
Access 2K to work in ASP.
My Access SQL statement is this:
SELECT DateAdd('s',Ticket_Opened_Date,'Dec 31, 1969...
|
by: Raghu |
last post by:
Hello...
I am running into a problem while running a query..can some1 help..
this is the query :
**************
SELECT *
from Table S
where S.dtDate1 BETWEEN...
|
by: Abdul N K |
last post by:
I need help in T-SQL.
I am using DATEADD function and I want to add 6 months to a date. But
it does not return me the rusults, which I want
e.g. SELECT DATEADD(m,'20040630') returns 20041230...
|
by: Annette Massie |
last post by:
I am trying to insert a record into a table via code and one of the
values to add I would like as a dateadd calculation on a value from a
query.
My code looks like this:
Set db = CurrentDb() ...
|
by: ey.markov |
last post by:
Greetings,
I have an A2K application where for a report the user enters a
month-end date, and the system must gather transactions for that month.
No problem, I thought, I'll just use the DateAdd...
|
by: C.Davidson |
last post by:
Does subject VB.net 2003 support DateAdd function? I have tried to
implement the following without success. In my example I tried to
simply add 30 months to 9/18/2003 and I get "New date: 12:00:00...
|
by: Rich Raffenetti |
last post by:
I have the following code. If I do the dateadd function with
dateinterval.minute, it works fine and the date/time value is displayed with
zero seconds. If I do the dateadd function with...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new...
| |