LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 16
Default Conditional statements in MS-Query?

Hi,

I just recently started working with MS-Query to pull data into spread
sheets and now I'm trying to add a field that would evaluate the value of two
other fields and set it's value accordingly.

For example, I'm trying to set the value for FieldC. SoIF FieldA=1 and
FieldB = D then FieldC=ABC ELSE IF FieldA=1 and FieldB = E THEN FieldC=XYZ.
I'm able to do this in MS-Access but keep getting syntax errors in MS-Query.

Is this possible in MS-Query?
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Conditional Statements Robert Albrecht Excel Discussion (Misc queries) 2 October 3rd 06 08:29 PM
Excel MS Query multiple select statements Revenger Excel Discussion (Misc queries) 3 May 12th 06 12:32 PM
Conditional MS Query Dean Excel Worksheet Functions 1 January 10th 06 01:52 PM
combining conditional statements wrosie Excel Worksheet Functions 4 November 29th 05 09:59 AM
Nesting IF statements, Conditional Formatting Nick Danger Excel Discussion (Misc queries) 2 September 26th 05 10:31 PM


All times are GMT +1. The time now is 03:11 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"