Results 1 to 5 of 5
  1. #1
    Mikey1987 is offline Novice
    Windows 7 64bit Access 2013
    Join Date
    Jan 2015
    Posts
    19

    Smile Append to table from a form

    Hello everyone,

    I'm kind of new to access, and I have a question that is probably no challenge to any of you
    The problem is the following...

    I have 3 tables:


    1) an Invoice table
    2) a table with all kinds of material (approx. 10k rows)
    3) a junction table with Invoice_ID and Material_ID

    Now, I start the process in my Invoice Form. I have a button there to open a Material form, where I can lookup the Material_ID that I want to add to my invoice form.
    But I can't seem to find out how, once I select the record I need (with the Material_ID on the row), how I can append this to my junction table.
    The open Invoice form has the Invoice_ID and the active row in my Material form has the Material_ID, but how do I proceed?
    I know the answer is close but I can't seem to figure it out

    Thanks in advance!
    Mikey

  2. #2
    pbaldy's Avatar
    pbaldy is online now Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,642
    If more than one material:

    http://www.baldyweb.com/MultiselectAppend.htm

    If not, you can drop the loop and just refer to the 2 controls.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    Mikey1987 is offline Novice
    Windows 7 64bit Access 2013
    Join Date
    Jan 2015
    Posts
    19
    Quote Originally Posted by pbaldy View Post
    If more than one material:

    http://www.baldyweb.com/MultiselectAppend.htm

    If not, you can drop the loop and just refer to the 2 controls.
    That seems to be working perfectly
    Now I just have to figure out how to implement that in my database, but at least I know "the guts" as he put it ^^

    Regards,
    Mikey

  4. #4
    pbaldy's Avatar
    pbaldy is online now Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,642
    No problem and welcome to the site by the way! post back if you get stuck.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  5. #5
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,644
    Instead of a popup form, did you consider a combobox on the invoice form for selecting material? Review http://allenbrowne.com/ser-32.html
    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.

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

Similar Threads

  1. Replies: 20
    Last Post: 04-11-2014, 07:07 AM
  2. Append table off the form
    By BorisGomel in forum Access
    Replies: 1
    Last Post: 07-13-2012, 01:29 PM
  3. aPPEND THE TABLE OFF THE FORM
    By BorisGomel in forum Access
    Replies: 1
    Last Post: 05-21-2012, 09:15 AM
  4. Replies: 1
    Last Post: 10-06-2011, 08:37 AM
  5. Replies: 1
    Last Post: 12-01-2010, 11:01 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