Results 1 to 4 of 4
  1. #1
    WalterP34 is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Nov 2011
    Posts
    2

    single form to create multiple records in the same table

    I've gotten some great tips/answers from this forum, so thanks to all the members who have given their time to the cause.
    I do have a problem that I couldn't find a particular answer for.

    I am creating a contacts database. I have a 'contacts' table and a 'tasks' table. The 'contacts' table has the standard info for each one of my contacts.

    The 'tasks' table has fields for the task info plus a related field 'CompanyName' that's linked to the 'contacts' table.




    Here is my question.

    I would like to create a single form that will create multiple records in the task table by allowing me to select more than 'CompanyName' field at the bottom of the form. I'm assuming that would best be handled by a combo box that allows multiple selections.


    I've only gotten so far with this. The only thing I've been able to do is create a form that puts multiple company names separated by a comma in the 'CompanyName' Field in the 'tasks' table in only one record and not a record for each separate 'CompanyName'.
    Here is the output I've been getting:

    '1'---'task1'---'company1,company3,company7,company12'---'taskdescription1'----'completeddate'


    And here is the output I'm trying to accomplish:

    '1'---'task1'---'company1'---'taskdescription1'----'completeddate'
    '2'---'task1'---'company3'---'taskdescription1'----'completeddate'
    '3'---'task1'---'company7'---'taskdescription1'----'completeddate'
    '4'---'task1'---'company12'---'taskdescription1'----'completeddate'



    The reason why I need them separated into different records is because down the road they will have different completed dates, priority levels, notes, etc.

    And as you see above I sometimes don't need to assign a task to every company. That's why I thought a combo-box that allowed multiple selections via check-boxes might be the best way to go.

    Let me know if you need me to relay any more info. I'm not sure how well I explained my situation.

    Any help would be greatly appreciated!

    Thanks!

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    WalterP34 is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Nov 2011
    Posts
    2
    Thanks Paul!!
    I'll give it a shot. I'll let you know if I can get that code integrated into my DB.

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

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

Similar Threads

  1. Replies: 11
    Last Post: 09-27-2011, 07:19 AM
  2. Create Multiple Records from Single Form
    By mcktigger in forum Forms
    Replies: 17
    Last Post: 09-15-2011, 11:07 AM
  3. Creating multiple records from a single form
    By secretary in forum Forms
    Replies: 8
    Last Post: 07-18-2011, 04:03 PM
  4. Create Multiple Charts from Single Table
    By Catch Wrestler in forum Reports
    Replies: 0
    Last Post: 06-17-2010, 08:33 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