Results 1 to 4 of 4
  1. #1
    jobbie is offline Advanced Beginner
    Windows 7 64bit Access 2007
    Join Date
    Apr 2014
    Posts
    46

    Multiple selections in listbox to create separate records in table

    I am trying to create a form based database to store links to various pdf documents. These files belong to one or multiple projects. So I have created a form with a list box which shows the various projects and and a text box which has the link to the pdf but the problem is when multiple projects are selected the information is not stored in the table as separate records. How should I go about doing this? For example if one pdf file refers to 2 projects X & Y and if a user selects these 2 projects in the list box and enters the path of the pdf in a textbox it should create 2 records in the table:




    Project Path
    X C:/Sales/X
    Y C:/Sales/Y

  2. #2
    orange's Avatar
    orange is online now Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,725
    sounds like a 1 to Many set up

    1 Project can have 1 or Many related pdf documents.

    tblProject---->tblProject_PDF_Files

    This would use a Form/subform arrangement.

    Search the forum for examples --there are several here and on youtube.

  3. #3
    jobbie is offline Advanced Beginner
    Windows 7 64bit Access 2007
    Join Date
    Apr 2014
    Posts
    46
    Quote Originally Posted by orange View Post
    sounds like a 1 to Many set up

    1 Project can have 1 or Many related pdf documents.

    tblProject---->tblProject_PDF_Files

    This would use a Form/subform arrangement.

    Search the forum for examples --there are several here and on youtube.

    I don't think it's a form/ subform or one to many problem. I just need a way to select multiple items and save them from a list box. I found the solution to the problem. I am pasting the link for future reference. Thanks

    http://bytes.com/topic/access/answer...ual-rows-table

  4. #4
    orange's Avatar
    orange is online now Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,725
    Good stuff. Thanks for posting your solution -seems good to me.

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

Similar Threads

  1. Replies: 1
    Last Post: 10-19-2014, 11:31 PM
  2. Replies: 2
    Last Post: 01-24-2014, 02:26 AM
  3. Replies: 2
    Last Post: 12-29-2012, 03:11 PM
  4. Replies: 3
    Last Post: 11-16-2011, 11:53 AM
  5. Replies: 3
    Last Post: 06-01-2009, 01:41 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