Results 1 to 4 of 4
  1. #1
    avarusbrightfyre is offline Advanced Beginner
    Windows Vista Access 2003
    Join Date
    Sep 2009
    Posts
    60

    How do I add multiple table entries using check boxes?

    I have a database that tracks the performances of various members of my ensemble. What I would like to have is a form that will allow me to specify the name of an event, the date of that event, the type of event it was and then have a subform with a list of names of the people of the ensemble. The goal would be to have the ability to simply click on all of the people who actually did the event, then click a button to add the appropriate entries to the actual table. The end goal of this would be to have a quick way to find out how many performances any one member did between a specified range of dates.



    What is the best way to accomplish this?

  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,652
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    avarusbrightfyre is offline Advanced Beginner
    Windows Vista Access 2003
    Join Date
    Sep 2009
    Posts
    60
    Ok, here is what I have so far:

    I have a form called "Add Commitment Count", a text box named "Event Name", a combo box named "Event Type" (which draws from a table of event types), a text box named "EventDate" and a list box named "ListPersonnel" (which draws from a table named "List Personnel").

    The list box lists the last name, first name and middle initial of the personnel on the table.

    I read the part about using a loop with the list box, but I'm unsure of how all the parts work. What I want to happen is that when the user selects all of the personnel assigned to an event, the database will add a new record for each selection using the EventName, EventType, EventDate and all the information in the list box pertaining to the selection. How do I reference the other text boxes and combine it with the info from the list box?

  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,652
    This line from the example is taking information from a textbox on the form in addition to the listbox:

    rs!OtherValue = Me.txtOtherValue

    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: 3
    Last Post: 09-29-2010, 09:31 AM
  2. merge multiple entries in table
    By rajsa in forum Database Design
    Replies: 1
    Last Post: 07-02-2010, 07:16 AM
  3. Replies: 3
    Last Post: 05-25-2010, 02:16 PM
  4. To check or Un-Check all Boxes in a form
    By devcon in forum Forms
    Replies: 7
    Last Post: 05-01-2010, 12:03 AM
  5. Replies: 0
    Last Post: 04-19-2008, 09:08 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