Results 1 to 6 of 6
  1. #1
    Bryan Easter is offline Novice
    Windows 2K Access 2010 32bit
    Join Date
    Feb 2013
    Posts
    5

    Smile Report Field Value from two other fields


    Hello there wizards.

    What I am wanting to do is to have either my report or a query to populate a field value based on the criteria of a check on two other fields.

    Field 1 AC
    Field 2 AC Need
    Field 3 - if Field 2 (AC Need) is Null then this field should = Field 1 (AC), if Field 2 has a value, then Field 3 = Field 2 (AC Need)

    The values in AC Need can change daily based on the movement of production.

    I am using Access 2010. I'm still really new to using Access, so use small words please

    Thanks.

  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,652
    Nz(Field2, Field1)
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    Bryan Easter is offline Novice
    Windows 2K Access 2010 32bit
    Join Date
    Feb 2013
    Posts
    5

    Explain please?

    Quote Originally Posted by pbaldy View Post
    Nz(Field2, Field1)
    I have no idea what that is...

    I've been trying in query to do this:
    Field 3: IIf([Field 2] Is Null,[Field 1]) which will return with the value Field 1, I need to expand it to include the not null.

    Thanks.

  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,652
    Did you try it?

    Field3: Nz([Field 2], [Field 1])
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  5. #5
    Bryan Easter is offline Novice
    Windows 2K Access 2010 32bit
    Join Date
    Feb 2013
    Posts
    5
    DOH! I see what I did...had an extra space in there was messing with it.

    Thanks.

    What does Nz do?

  6. #6
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,652
    As detailed in help, it does exactly what you want; replaces a Null value with another.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

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

Similar Threads

  1. Replies: 2
    Last Post: 03-07-2013, 04:50 PM
  2. Visible Fields in Report if field=x
    By chris.williams in forum Reports
    Replies: 8
    Last Post: 09-05-2012, 03:49 PM
  3. Replies: 4
    Last Post: 01-30-2012, 08:32 AM
  4. report fields
    By Lois in forum Reports
    Replies: 4
    Last Post: 10-28-2011, 05:45 AM
  5. Too many fields in a report
    By wsm_al in forum Reports
    Replies: 1
    Last Post: 10-17-2011, 03:29 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