Results 1 to 2 of 2
  1. #1
    MarcusW. is offline Novice
    Windows 7 64bit Access 2013 64bit
    Join Date
    Nov 2016
    Posts
    6

    -NOOB- ??? - Can a form auto-insert(append) if record does not exist?

    Thanks in advance for your patience as I try to explain.

    Goals:
    Display how much experience a mechanic has with each component. (High, medium, or low). (every mechanic must have a value for every component, default to "low" for newly added components)
    Easily update with changes to experience
    Automatically accommodate additions to either the mechanic, or component table.


    Table list:
    tbl_mechanic


    tbl_component
    tbl_experience

    tbl_matrix
    <-- has a unique index key (mechanicID + componentID=uniquecomboid) to prevent duplicates


    I've created a form (form1) that has THREE list boxes:
    lb_mechanics
    lb_components
    lb_experience


    Here's my desired outcome:
    Step 1, choose the mechanic from the lb_mechanics listbox
    Step 2, choose the component from the lb_components listbox

    OUTCOME:
    lb_experience; highlights correct experience level found in existing match/record.

    IF i need to change the records' experienceID, I would like to simply select the NEW experience from the lb_experience listbox, and the record would change, BUT....IF there is NO matching record, the form would INSERT the selected mechanicID + componentID + <selected> experienceID into the tbl_matrix.


    Please feel free to let me know what information I'm not including that would help. I've been self researching for a week now. I need help.


    Attaching what I think would help.
    Click image for larger version. 

Name:	Form1.png 
Views:	15 
Size:	17.3 KB 
ID:	26611
    Mechanics.mdb

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,525
    You can do this with a parent/child form.
    The parent form would be the single record of 1 mechanic.
    the subForm would be the tblExperience as a list.
    the list will show only his components. Alter his level here. It would be a cboBox to choose a different level.
    you can also add a new record ,a combo box to pick component.

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

Similar Threads

  1. Replies: 15
    Last Post: 09-14-2015, 01:31 PM
  2. Replies: 4
    Last Post: 12-14-2012, 06:33 PM
  3. Replies: 4
    Last Post: 06-21-2012, 05:39 PM
  4. Append if record doesn't exist
    By Lorlai in forum Queries
    Replies: 1
    Last Post: 06-14-2011, 06:38 PM
  5. If record does not exist, open add new record form
    By RobertIngles in forum Programming
    Replies: 2
    Last Post: 02-01-2011, 08:47 AM

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