Results 1 to 6 of 6
  1. #1
    mduplantis is offline Advanced Beginner
    Windows 8 Access 2013
    Join Date
    Jun 2010
    Location
    Omaha, Ne
    Posts
    65

    Store correct value in Junction Table with form controls

    Hello,


    I am working with 3 tables (tblPERS, tblPPEAssigned,tblPPE), one of which is a junction table (tblPPEAssigned). I have created a main form (Personnel Overview) and have used a query to create a subform of my main form.
    I also have set up a form (Assign PPE) using the form controls to add new values to the fields (PERSID and PPEID) which are my FK. Although I kind of have it working, it appears I am not storing the FK values, but instead story the 2nd column of my outside tables.

    Below is a diagram of my problem.
    Click image for larger version. 

Name:	access.JPG 
Views:	10 
Size:	82.4 KB 
ID:	22757
    My goal is to have the user make a choice from the combo box that is familiar to them, but store the correct FK in the table. My attempt was to use form controls, but maybe this is better accomplished in the table design?

    Click image for larger version. 

Name:	access2.JPG 
Views:	10 
Size:	33.8 KB 
ID:	22758

    Thanks for any help

  2. #2
    ItsMe's Avatar
    ItsMe is offline Sometimes Helpful
    Windows 8 Access 2013
    Join Date
    Aug 2013
    Posts
    7,862
    Is your combo a bound combo? Perehaps you need to adjust the Bound Column property.
    https://msdn.microsoft.com/en-us/lib.../ff822489.aspx

  3. #3
    mduplantis is offline Advanced Beginner
    Windows 8 Access 2013
    Join Date
    Jun 2010
    Location
    Omaha, Ne
    Posts
    65
    Hi,

    Yes, it is a bound property and it is set to 1. I attempted to change to 0, but it gave me warning. I'm trying to figure out how to attach a copy of the database to the question.

    Thanks

  4. #4
    mduplantis is offline Advanced Beginner
    Windows 8 Access 2013
    Join Date
    Jun 2010
    Location
    Omaha, Ne
    Posts
    65
    I found the FAQ on how to upload a file, but I can't seem to find the controls.

    Here is the database until I figure it out.

    https://www.dropbox.com/s/t8cgc0cnfl...151.accdb?dl=0

  5. #5
    mduplantis is offline Advanced Beginner
    Windows 8 Access 2013
    Join Date
    Jun 2010
    Location
    Omaha, Ne
    Posts
    65
    I as able to solve my problem. I had to change my original query and also a few of the form properties with the combo box. Thanks fo r looking.

  6. #6
    ItsMe's Avatar
    ItsMe is offline Sometimes Helpful
    Windows 8 Access 2013
    Join Date
    Aug 2013
    Posts
    7,862
    Sorry I was not able to respond earlier, but I am glad you were able to sort out the issue.

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

Similar Threads

  1. Replies: 1
    Last Post: 07-03-2014, 11:07 AM
  2. Using form to add record to Junction table
    By SaskiFX in forum Forms
    Replies: 5
    Last Post: 03-19-2013, 12:16 PM
  3. Updating junction table in form
    By Palladian in forum Forms
    Replies: 7
    Last Post: 11-14-2012, 12:27 AM
  4. Replies: 7
    Last Post: 11-03-2012, 06:17 PM
  5. Populating Junction table from form
    By JFo in forum Access
    Replies: 18
    Last Post: 09-05-2011, 09:15 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