PC Review


Reply
Thread Tools Rate Thread

Access IF Statement

 
 
=?Utf-8?B?YmlnZ2dfZmlzaA==?=
Guest
Posts: n/a
 
      11th Jul 2007
I was wondering if it was possible to do the following:

I have a series of field numbers (12345, 12346, etc...) in one column, and
for my report in MS Access I need to show those field numbers along with
another box that will show cutting dates for those fields. For the Even
field numbers it will show "Cut July 1st - December 31st" and for every Odd
number show "Cut June 15th - December 31st". Can i use an IFF statement to
recongize the number and put in the correct cutting date in the other box.

(I have simplized this probelm because I would have to do this function with
multiple columns, but if any one can get me started i can figure out the
rest).

HELP!
 
Reply With Quote
 
 
 
 
fredg
Guest
Posts: n/a
 
      11th Jul 2007
On Wed, 11 Jul 2007 14:24:02 -0700, biggg_fish wrote:

> I was wondering if it was possible to do the following:
>
> I have a series of field numbers (12345, 12346, etc...) in one column, and
> for my report in MS Access I need to show those field numbers along with
> another box that will show cutting dates for those fields. For the Even
> field numbers it will show "Cut July 1st - December 31st" and for every Odd
> number show "Cut June 15th - December 31st". Can i use an IFF statement to
> recongize the number and put in the correct cutting date in the other box.
>
> (I have simplized this probelm because I would have to do this function with
> multiple columns, but if any one can get me started i can figure out the
> rest).
>
> HELP!


Well, you can't use IFF because there 'ain't no' IFF.
You can, however, use IIf.
If I understand your question (and I'm not at all sure I do), then in
an unbound control on your report:
=IIf([FieldName] Mod 2 = 0, "Cut July 1st - December 31st","Cut June
15th - December 31st")

--
Fred
Please respond only to this newsgroup.
I do not reply to personal e-mail
 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Converting an Excel IF statement to an Access IFF statement =?Utf-8?B?cGFya3NqcDE=?= Microsoft Access 4 22nd Apr 2011 07:55 PM
in access, if then statement dtretina Microsoft Access Queries 2 7th Jun 2010 09:13 PM
How to use an IF Statement in Access =?Utf-8?B?Wg==?= Microsoft Access 2 28th Jul 2006 08:46 AM
How do I use a SQL statement in an MS Access data access page (HT. =?Utf-8?B?RG9uIE1pY2hhZWxz?= Microsoft Access 0 18th Jul 2006 09:30 PM
iif statement with And statement in query (ms access 2000) =?Utf-8?B?Sk0gS2VsbHk=?= Microsoft Access 1 14th Apr 2005 06:28 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:38 PM.