Results 1 to 2 of 2
  1. #1
    ssgtdelvalle is offline Novice
    Windows XP Access 2007
    Join Date
    Jan 2012
    Posts
    1

    How do I remove an option in a combo box once its selected.


    I am a US Marine and I am building a database to keep track of all the weapons in the Armory. I have multiple tables but to keep the question simple im only going to talk about 2.

    I have the main table where all the raw data is stored, I also have the pistol table which all pistol serial numbers are stored. I have created a form to input information that will be stored in the main table. In that form i have a combo box that looks up information from the pistol table and stores it in the main table. In essence I am issuing a pistol to each Marine in the battalion how do I remove the serial number from the combo box once it has been selected, so that the next time I go to issue a pistol it only shows the pistols available for issue serial numbers not in the main table?

  2. #2
    Robeen is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    Mar 2011
    Location
    Tulsa, Oklahoma.
    Posts
    1,596
    I suggest adding a 'Yes/No' field to the Pistol table and naming it something like 'CheckedOut' [for example].

    When you give a pistol to a Marine - you put a 'Yes' in the [CheckedOut] field of the Pistol table [meaning it IS checked out].

    Then - change the Row Source of your Combo Box so that it says something like ' . . . Where [CheckedOut] = False'.
    This will limit the pistols displayed to those that are not checked out.

    Hope this helps.

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. Calculating sum of selected option/combo boxes
    By SgtSaunders69 in forum Forms
    Replies: 4
    Last Post: 08-04-2014, 09:20 PM
  3. Remove selection from Combo box
    By bbrazeau in forum Forms
    Replies: 2
    Last Post: 01-16-2012, 03:01 PM
  4. Replies: 1
    Last Post: 11-23-2010, 01:30 PM
  5. Replies: 2
    Last Post: 08-17-2010, 02:58 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