Results 1 to 3 of 3
  1. #1
    Stephanie53 is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    Mar 2013
    Posts
    246

    Master/Child Link between Forms/Subforms

    Click image for larger version. 
<br /><script async src=
    Name: Master_Child errors 2.png  Views: 9  Size: 24.4 KB  ID: 11768" class="thumbnail" style="float:CONFIG" />

    Click image for larger version. 

Name:	Master_Child errors 1.png 
Views:	9 
Size:	26.3 KB 
ID:	11769

    Now when I make selection on Master it fills in the wrong info on the info on the Subform section. It wont allow me to select PrimaryID to PrimaryID ..I get that error above.

    Please assist??

    TIA

    Stephanie

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,633
    Error says incompatible data types. Fields must be same data type to link. If PrimaryID is a number type in one table but the other field is a text type, they can't link.

    Does this data have 1-to-1 relationship?
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    Missinglinq's Avatar
    Missinglinq is offline VIP
    Windows 7 64bit Access 2007
    Join Date
    May 2012
    Location
    Richmond (Virginia, not North Yorkshire!)
    Posts
    3,018
    As June7 said, Fields must be same data type to link, Text-to-Text, Number-to-Number, etc. The only (sort of) exception is if one of the Fields is an Autonumber. If PrimaryID is defined as an Autonumber, the linking Field must be defined as a Number (not an Autonumber) with the Field Size set to Long Integer.

    Linq ;0)>

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

Similar Threads

  1. Replies: 5
    Last Post: 03-30-2013, 12:56 PM
  2. Replies: 3
    Last Post: 12-12-2012, 01:13 AM
  3. Replies: 1
    Last Post: 01-04-2011, 05:04 AM
  4. Master/Child between Subforms
    By Pilotwings_64 in forum Forms
    Replies: 3
    Last Post: 08-22-2010, 01:45 AM
  5. Link Master Field and Link Child Field
    By evander in forum Forms
    Replies: 2
    Last Post: 05-25-2010, 09:13 PM

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