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 » Running & Setting Up Queries
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Can you put an IF statement in a query expression?



 
 
Thread Tools Display Modes
  #1  
Old July 8th, 2008, 11:11 PM posted to microsoft.public.access.queries
Jimbo213
external usenet poster
 
Posts: 40
Default Can you put an IF statement in a query expression?


How can I create this expression in a query

FITOK: =IIF(OR( [Status_FIT_Lead]=75,[Status_FIT_Mult]=0),"OK","No")

Thanks for your reply & assistance.
Jimbo213
  #2  
Old July 8th, 2008, 11:26 PM posted to microsoft.public.access.queries
John Spencer
external usenet poster
 
Posts: 2,364
Default Can you put an IF statement in a query expression?

FITOK: IIF( Status_Fit_Lead = 75 OR Status_Fit_Mult =0,"OK","No")

'================================================= ===
John Spencer
Access MVP 2002-2005, 2007-2008
The Hilltop Institute
University of Maryland Baltimore County
'================================================= ===


Jimbo213 wrote:
How can I create this expression in a query

FITOK: =IIF(OR( [Status_FIT_Lead]=75,[Status_FIT_Mult]=0),"OK","No")

Thanks for your reply & assistance.
Jimbo213

  #3  
Old July 8th, 2008, 11:37 PM posted to microsoft.public.access.queries
Jimbo213
external usenet poster
 
Posts: 40
Default Can you put an IF statement in a query expression?


OUTSTANDING - - - - worked the first time.

Thanks for your reply & assistance, John
Jimbo213


"John Spencer" wrote:

FITOK: IIF( Status_Fit_Lead = 75 OR Status_Fit_Mult =0,"OK","No")

'================================================= ===
John Spencer
Access MVP 2002-2005, 2007-2008
The Hilltop Institute
University of Maryland Baltimore County
'================================================= ===


Jimbo213 wrote:
How can I create this expression in a query

FITOK: =IIF(OR( [Status_FIT_Lead]=75,[Status_FIT_Mult]=0),"OK","No")

Thanks for your reply & assistance.
Jimbo213


 




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 02:19 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.