Results 1 to 2 of 2
  1. #1
    sfgiantsdude is offline Advanced Beginner
    Windows XP Access 2003
    Join Date
    Jan 2012
    Posts
    34

    possible to have an expression within an expression?


    Expr5: IIf((Expr4: [MCA_EPM_ISSUES]![QTR] & ‘Q’ & Right([MCA_EPM_ISSUES]![KP_YR_NB],2)) not in("3Q11","2Q11","1Q11","4Q10","3Q10","2Q10","1Q10 "),"TEST",Null)

    Is it possible to create an if then statement for an embedded expression that you create within the if then statement? I'm trying to create an if then statement for a combination of two fields in a table to combine the quarter field and the year field so it looks like "4Q10".

    Any help would be much appreciated!

  2. #2
    aytee111 is offline Competent At Times
    Windows 7 32bit Access 2010 32bit
    Join Date
    Nov 2011
    Location
    Nomad
    Posts
    3,936
    Yes I should think so, as long as the syntax is right. A few things right off the bat : Expr4 should not be there, it looks like you are mixing quotes, all quotes should be double or single (it looks as though the Q is in single quotes), there is an extra space in 1Q10.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Expression Help
    By bboyd in forum Access
    Replies: 3
    Last Post: 11-25-2011, 06:11 AM
  2. Expression
    By jltm8 in forum Access
    Replies: 5
    Last Post: 11-03-2011, 10:09 AM
  3. Looking for help with an expression
    By CoachBarker in forum Queries
    Replies: 3
    Last Post: 11-25-2010, 05:17 AM
  4. Expression value
    By KWarzala in forum Reports
    Replies: 0
    Last Post: 06-15-2010, 12:35 PM
  5. Help With an expression
    By kylem4711 in forum Queries
    Replies: 2
    Last Post: 04-23-2009, 01:57 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums