Results 1 to 3 of 3
  1. #1
    2 Star Lounger
    Join Date
    Jul 2003
    Posts
    124
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Sub Form Linking (Access 2002)

    I have Form and Sub Form; the Sub form does not display the records if one on the Link Fields have a null value. Even when both Tables have a null value. However; the records are displayed when all Child and Master Fields have values.

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Sub Form Linking (Access 2002)

    That is the expected behavior. The link field should be the primary key in the record source of the main form; the primary key of a table cannot contain null values.

  3. #3
    Gold Lounger
    Join Date
    Jun 2001
    Location
    Crystal Beach, FL, Florida, USA
    Posts
    3,436
    Thanks
    1
    Thanked 34 Times in 34 Posts

    Re: Sub Form Linking (Access 2002)

    As an additional note, it appears you do not fully comprehend what a Null value is and how it is used. Null values can't be compared. That is, 2 fields that are both Null are not considered to be equal. The equation [Field1] = [Field2] does NOT equate to True if both Field1 and Field2 are null; if either or both are Null, the result of the comparison is Null.

    Some people think of Null as meaning "No value" or "I don't know", but I think it is perhaps easier to comprehend if you think of Null as meaning "it could be anything".
    Mark Liquorman
    See my website for Tips & Downloads and for my Liquorman Utilities.

Posting Permissions

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