Re: If Statement
- From: "Jeff Boyce" <JeffBoyce_IF@xxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Thu, 27 Apr 2006 05:43:52 -0700
Also, if you are working in a query, you'd be using the IIF() function
rather than an "IF" function.
--
Regards
Jeff Boyce
Microsoft Office/Access MVP
http://mvp.support.microsoft.com/
Microsoft IT Academy Program Mentor
http://microsoftitacademy.com/
Microsoft Registered Partner
https://partner.microsoft.com/
"cs1954" <cs1954@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:19B91F71-8AB9-4A0B-98EB-E0ACAC947F7A@xxxxxxxxxxxxxxxx
I have a query that projects the next months date "NextMonthDate:the
DateAdd("m",1,[Date]). I need to change the date of the projection for
month of April on here is what I am proposing
IF [Date] <4/16/06 [Then] NextMonthDate: DateAdd("m",1,[Date]
[ElseIf .4/15/06 [Then] NextMonthDate: DateAdd ("m",1, "d", 4, [Date]
[ElseIf >5/20/06 [Then] NextMonthDate: DateAdd("m",1,[Date]
.
- Prev by Date: Re: If Statement
- Next by Date: Re: Advanced query issue
- Previous by thread: Re: If Statement
- Index(es):
Relevant Pages
|