Results 1 to 2 of 2
  1. #1
    startek is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Sep 2012
    Posts
    1

    Need help with manipulating data selected in combo box

    A friend and I are working on an Access 2007 database on share point for our National Guard unit. We both have limited programming experience, but understand alot.



    Situation:
    On a form we have a combo box named Troop_List and a text box named Total_Pax.
    The combo box queries an excel spreadsheet named Name Data to obtain the field [NAME] and use each entry as the row source.
    The user of the form can select any of the names in the drop down box and upon clicking OK, the selected names are outputed to the display area of the combo box.
    We want to total the number of names selected in the combo box and input that number to the text box named Total_Pax

    We are assuming the proceudre Enter() of Troop_List will be used. Although being many years since either of us programmed VB, we are confident we can figure out how to total the names and input them into the text box. If not we will inquire. We would like to figure as much out on our own as possible.

    Problem:
    Is there a way to access a property that has the total number of names selected?
    If not the row source property of Troop_List quieries the table Name Data. What variables can we use or can we create a loop to count the number of records returned by the query?

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,945
    I assume this combobox is bound to a multi-value field. Can count multiple-selected items of a listbox with VBA loop structure but I don't think can with a multi-select combobox. However, my understanding of Sharepoint is can't use VBA.
    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. Clear selected value in combo box
    By bbrazeau in forum Programming
    Replies: 6
    Last Post: 08-05-2014, 12:38 AM
  2. Replies: 5
    Last Post: 08-30-2012, 06:34 PM
  3. Get combo box selected text.
    By allstar45 in forum Programming
    Replies: 1
    Last Post: 02-16-2012, 10:03 AM
  4. Replies: 1
    Last Post: 01-19-2012, 11:59 AM
  5. Combo box - Open at last item selected
    By mitchy1111 in forum Programming
    Replies: 2
    Last Post: 10-07-2011, 07:23 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