Results 1 to 5 of 5
  1. #1
    KrenzyRyan is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Nov 2010
    Posts
    54

    If Field is Null - Then Use Data from Other Field

    This one should be an easy one for you guys.

    How would the criteria look for if the Query Field is Null - Then for it to Use Data from another field in the query.



    Thanks Guys!

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    Try

    Nz(FirstField, SecondField)
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    KrenzyRyan is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Nov 2010
    Posts
    54
    That worked great pbaldy!

    Now, if the "Second Field" also didn't have a value...how would I set it up to pull from the "third field"?

  4. #4
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    Starting to sound like a design problem, but try

    Nz(FirstField, Nz(SecondField, ThirdField))
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  5. #5
    KrenzyRyan is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Nov 2010
    Posts
    54
    That worked great, thanks pbaldy!

    I wish it was a design problem...its more like a data problem. I have to pull from several tables in order to get the material number for another report. Its alot of combining unfortunately...

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

Similar Threads

  1. Passing a NULL value to a date field
    By lman in forum Queries
    Replies: 2
    Last Post: 02-22-2011, 02:20 PM
  2. Replies: 3
    Last Post: 01-15-2011, 02:39 AM
  3. Replies: 3
    Last Post: 11-05-2010, 03:10 PM
  4. Null field message
    By jpkeller55 in forum Access
    Replies: 3
    Last Post: 09-03-2010, 10:45 AM
  5. If Form Field is not null then...
    By cotri in forum Forms
    Replies: 5
    Last Post: 01-12-2010, 11:08 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