A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Setting Up & Running Reports
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

IIF A=x then B=A+1



 
 
Thread Tools Display Modes
  #1  
Old October 10th, 2005, 06:06 PM
aaearhart
external usenet poster
 
Posts: n/a
Default IIF A=x then B=A+1

....for the most part.

This is for a travel schedule report for our US and UK travelers.
Essentially, if a US traveler leaves for Italy on 10 October, he doesnt
arrive in Italy until 11 October. However, if a UK traveler leaves for Italy
on 10 October (usually) he arrives in Italy on 10 October.

so i need something like this

IFF([Citizenship]=United States, [ArrivalDate]=[StartDate] +1 else
[ArrivalDate]=[StartDate])

i realise that's very poor 'grammar', so please, bear with me.

thanks!
/amelia
  #2  
Old October 10th, 2005, 06:42 PM
Ofer
external usenet poster
 
Posts: n/a
Default

I assume you want to dispaly this value in a field in a report that called
[ArrivalDate], if that the case, then in the control source of the field you
can write

= IIF([Citizenship]="United States", [StartDate] +1 , [StartDate])

--
I hope that helped
Good luck


"aaearhart" wrote:

...for the most part.

This is for a travel schedule report for our US and UK travelers.
Essentially, if a US traveler leaves for Italy on 10 October, he doesnt
arrive in Italy until 11 October. However, if a UK traveler leaves for Italy
on 10 October (usually) he arrives in Italy on 10 October.

so i need something like this

IFF([Citizenship]=United States, [ArrivalDate]=[StartDate] +1 else
[ArrivalDate]=[StartDate])

i realise that's very poor 'grammar', so please, bear with me.

thanks!
/amelia

  #3  
Old October 10th, 2005, 06:52 PM
aaearhart
external usenet poster
 
Posts: n/a
Default

yay! thanks a mill!

"Ofer" wrote:

I assume you want to dispaly this value in a field in a report that called
[ArrivalDate], if that the case, then in the control source of the field you
can write

= IIF([Citizenship]="United States", [StartDate] +1 , [StartDate])

--
I hope that helped
Good luck


"aaearhart" wrote:

...for the most part.

This is for a travel schedule report for our US and UK travelers.
Essentially, if a US traveler leaves for Italy on 10 October, he doesnt
arrive in Italy until 11 October. However, if a UK traveler leaves for Italy
on 10 October (usually) he arrives in Italy on 10 October.

so i need something like this

IFF([Citizenship]=United States, [ArrivalDate]=[StartDate] +1 else
[ArrivalDate]=[StartDate])

i realise that's very poor 'grammar', so please, bear with me.

thanks!
/amelia

  #4  
Old October 10th, 2005, 07:01 PM
Ofer
external usenet poster
 
Posts: n/a
Default

Your welcome
--
I hope that helped
Good luck


"aaearhart" wrote:

yay! thanks a mill!

"Ofer" wrote:

I assume you want to dispaly this value in a field in a report that called
[ArrivalDate], if that the case, then in the control source of the field you
can write

= IIF([Citizenship]="United States", [StartDate] +1 , [StartDate])

--
I hope that helped
Good luck


"aaearhart" wrote:

...for the most part.

This is for a travel schedule report for our US and UK travelers.
Essentially, if a US traveler leaves for Italy on 10 October, he doesnt
arrive in Italy until 11 October. However, if a UK traveler leaves for Italy
on 10 October (usually) he arrives in Italy on 10 October.

so i need something like this

IFF([Citizenship]=United States, [ArrivalDate]=[StartDate] +1 else
[ArrivalDate]=[StartDate])

i realise that's very poor 'grammar', so please, bear with me.

thanks!
/amelia

 




Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


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


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.