Re: Query on a calculated field
- From: jenniebentham <jenniebentham@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Tue, 23 Oct 2007 06:29:01 -0700
Fantastic! Thanks so much John...I set the parameter data type and used this
more simple formula.
"John Spencer" wrote:
Or you can use the IIF expression or you can use DateAdd function which will.
automatically handle null values.
Field: TargetDate: DateAdd("m",6, [Actual Date])
--
John Spencer
Access MVP 2002-2005, 2007
Center for Health Program Development and Management
University of Maryland Baltimore County
..
"Jeff Boyce" <JeffBoyce_IF@xxxxxxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:%23yitDNWFIHA.5272@xxxxxxxxxxxxxxxxxxxxxxx
Open a query in design view.
In the "field" grid, add:
YourNewField: IIF(... your expression...)
--
Regards
Jeff Boyce
www.InformationFutures.net
Microsoft Office/Access MVP
http://mvp.support.microsoft.com/
Microsoft IT Academy Program Mentor
http://microsoftitacademy.com/
"jenniebentham" <jenniebentham@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:82787100-CE21-4F2D-91A4-928848F26FA3@xxxxxxxxxxxxxxxx
Having read millions of time not to store results of calculated fields inDate]),Month([Actual
tables, I have the following in a field on a form that calculates a date
6
months in the future [target date] from an field [actual date]
=IIf([Actual Date] Is Not Null,DateSerial(Year([Actual
Date])+6,Day([Actual Date])))am
However, I now need to produce a query and report on [target date] and I
unsure how to put this formula into the query. I need to produce a querythat
shows me all [target dates] within a given date range.
I can read some SQL, but usually use the Access query design view.
Thanks in advance!
- References:
- Re: Query on a calculated field
- From: Jeff Boyce
- Re: Query on a calculated field
- From: John Spencer
- Re: Query on a calculated field
- Prev by Date: Re: upsizing to sql 2005
- Next by Date: Re: Counting by groups
- Previous by thread: Re: Query on a calculated field
- Next by thread: Re: Multy function field
- Index(es):
Relevant Pages
|