Results 1 to 2 of 2

Thread: Help with Immediate IF expression...

  1. #1
    Join Date
    Jun 2003
    Location
    Rockland County, New York
    Posts
    3

    Help with Immediate IF expression...

    Can someone shed some light on what's wrong with this expression:


    IIf([Primary Lname]=[Secondary Lname],[Primary Fname] & " & " & [Secondary Fname] & [Primary Lname],IIf(IsMissing([Secondary Lname]),[Primary Fname] & " " & [Primary Lname],[Primary Fname] & " " & [Primary Lname] & " & " & [Secondary Fname] & " " & [Secondary Lname]))

    What is happening is Access keeps deleting the last 2 parenthesis and then pops up an error box saying that I a parenthesis is missing from the expression???????

    Thanks in advance for any advice. - DB

  2. #2
    Join Date
    Sep 2002
    Location
    Fantasy
    Posts
    4,254
    I ran this in access as query. it ran fine. i think you have some parenthis or "" or & in the data itself

    SELECT IIf([Primary Lname]=[Secondary Lname],[Primary Fname] & " & " & [Secondary Fname] & [Primary Lname], IIf(IsMissing([Secondary Lname]),[Primary Fname] & " " & [Primary Lname],[Primary Fname] & " " & [Primary Lname] & " & " & [Secondary Fname] & " " & [Secondary Lname])) from table3

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •