Results 1 to 10 of 10
  1. #1
    accrep18 is offline Novice
    Windows 10 Access 2007
    Join Date
    Mar 2018
    Posts
    11

    Question problems connecting fields

    I'm tying to make a relationship between Photo (an attachment field in Table 2) with the same in Table 3.
    I created each Photo field separately in each Table.

    I get an error - see attached.

    I'm missing something simple... I want to just upload a photo attachment in Table 2 and have it auto-populate in Table 3.
    How to do this correctly ?



    Thanks !


    Click image for larger version. 

Name:	Connecting attachment fields.jpg 
Views:	13 
Size:	56.0 KB 
ID:	33200

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,550
    you dont relate photos, you relate the Key IDs
    ID --> ID

    And the ID must be keyed 1 master to N child.

  3. #3
    accrep18 is offline Novice
    Windows 10 Access 2007
    Join Date
    Mar 2018
    Posts
    11
    I have a Key ID that relates all 3 tables (see screenshot).
    So does that mean that if I enter a already-existing field from Table 2 into Table 3, that it would auto-populate ?

    Can I make Photo a Key ID for Table 2, and then relate it to Photo in Table 3 ?

  4. #4
    orange's Avatar
    orange is offline Moderator
    Windows 10 Access 2010 32bit
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,870
    Here's a link on database planning and design with a number of articles, tutorials and videos that should help with concepts.

    It is helpful to you and readers if you describe what you are trying to do in plain English. Add graphics or tech/database jargon if needed.
    Last edited by orange; 03-20-2018 at 01:58 PM. Reason: spelling

  5. #5
    accrep18 is offline Novice
    Windows 10 Access 2007
    Join Date
    Mar 2018
    Posts
    11
    Thanks for the links - I understand better.

    I guess the question I have is :

    -are there situations where you want to have the same (non-key) field in two different tables ? (Photo, in my case)
    -if so, how do you ensure that those fields track/update when a change is made in one table vs another ?




    Quote Originally Posted by orange View Post
    Here's a link on database planning and design with a number of articles, tutorials and videos that should help with concepts.

    It is helpful to you and readers if you describe what you are trying to do in plain English. Add graphics or tech/database jargon if needed.

  6. #6
    orange's Avatar
    orange is offline Moderator
    Windows 10 Access 2010 32bit
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,870
    are there situations where you want to have the same (non-key) field in two different tables ?
    Possibly, but that's sort of hypothetical.
    The concern here is what exactly are you trying to do in simple, plain English? No database, no jargon.
    Once we know what and understand, readers may offer advice/suggestions as to how it might be done with Access.

  7. #7
    accrep18 is offline Novice
    Windows 10 Access 2007
    Join Date
    Mar 2018
    Posts
    11
    What I'm trying to do is have a photo (image) available for the user whenever they are in Table 2 or Table 3.
    Actually Table 3 will be tied to a Form, where the image would be shown.
    One image per record.

  8. #8
    orange's Avatar
    orange is offline Moderator
    Windows 10 Access 2010 32bit
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,870
    ??? You can do better than that for a description of what you're trying to do in plain, simple English.
    Consider, you are in a line at McDonalds, then person behind you --who does not know you, does not know database --asks you what your project is about? Instead of telling him or her to get lost, you simply tell them in plain, simple English.....

    Here's an example from a tutorial from the link I gave you earlier

    Problem Narrative:
    Class Information Database


    Roger Carlson's CIS 253 class wants to create a database to store information about the students in the class. Information will include student demographic information, contact information and course information and history.

    Information about the students will include name, address, city, state, zip, phone, email, fax, college major, Social Security Number, and gender. Each student can have more than one phone number, email address or fax number.

    Course Information includes course name, course number, number of credits, and grade received. Each student will take many courses in their college career. And naturally, each course will have many students enrolled.

  9. #9
    ssanfu is offline Master of Nothing
    Windows 7 32bit Access 2010 32bit
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664
    Storing pictures/photos in tables is the WRONG approach!

    Here is an explanation why (and a tutorial): Storing Pictures In An Access Database

  10. #10
    orange's Avatar
    orange is offline Moderator
    Windows 10 Access 2010 32bit
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,870

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

Similar Threads

  1. Replies: 3
    Last Post: 11-18-2014, 04:11 PM
  2. Problems with calculation fields
    By aboondocksaint2 in forum Queries
    Replies: 1
    Last Post: 04-30-2014, 01:11 AM
  3. Replies: 1
    Last Post: 12-19-2012, 11:21 PM
  4. Problems with Multiple Value Fields
    By umarus in forum Access
    Replies: 8
    Last Post: 10-14-2012, 02:53 PM
  5. Connecting Fields in Access and Excel
    By bigmacholmes in forum Access
    Replies: 3
    Last Post: 11-04-2011, 12:28 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