Results 1 to 3 of 3
  1. #1
    HParker is offline Novice
    Windows 10 Access 2016
    Join Date
    Mar 2019
    Posts
    5

    help with expression to leave field blank if one of the fields in expression is Null

    Expr2: [SongTItle2] & " - " & [Composer2], IIf([SongTItle2]=0, "Null")

    Right now is SongTitle2 is blank the field prints the dash. I would like it to show nothing if SongTitle2 is blank.

    Help please?

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,525
    =IIf(IsNull([SongTItle2]),"",[SongTItle2] & " - " & [Composer2])

  3. #3
    HParker is offline Novice
    Windows 10 Access 2016
    Join Date
    Mar 2019
    Posts
    5
    Perfect! Thank you

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

Similar Threads

  1. Replies: 15
    Last Post: 01-05-2018, 06:31 PM
  2. Replies: 2
    Last Post: 11-16-2017, 03:33 AM
  3. Replies: 12
    Last Post: 07-07-2016, 02:09 PM
  4. Replies: 2
    Last Post: 11-20-2012, 03:21 AM
  5. Replies: 5
    Last Post: 05-22-2012, 08:06 AM

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