Results 1 to 8 of 8
  1. #1
    RoundTrip is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Feb 2014
    Posts
    28

    Forms, Combox Edit List Option

    Alright guys! So I have a few different combobox's where the people entering the information in the form, will every now and then have to add a new item in the dropdown box, for example they will be entering chemicals and if they so happen to use a new chemical this week, they will edit the list on the combobox to the list. Well I just did the editing last week on the list box to make sure everything worked but now it seems, every time I go to the property list for combobox in the form and click the choice on the List Items Edit Form, and then go back to Form view and choose the edit list option the pop up to add to the list does not come up? What am I doing wrong exactly? Did I corrupt something? Or is there something I am missing?Thanks everyone in advance
    If I have to post my database for more clarity please let me know, thanks everyone


    And I have allow edit list box checked yes, I made sure to check that :P
    Last edited by RoundTrip; 03-02-2014 at 09:15 PM.

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,597
    Sounds like the source of combobox items is a Value List. I recommend you have a table of chemicals as the RowSource. Add a new chemical by adding a new record in the table. This can be done on-the-fly with the NotInList event.

    http://www.blueclaw-db.com/access_no...ed_example.htm

    http://www.fontstuff.com/access/acctut20.htm
    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.

  3. #3
    RoundTrip is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Feb 2014
    Posts
    28
    Alright thankyou june, I like how the first one looks, I am about to try to get that to work for me, let me see if
    I can get it to work by changing the things I need to and then if I can not I'll follow up by asking questions.

  4. #4
    RoundTrip is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Feb 2014
    Posts
    28
    Ok, I am sorry oin the first link, I really like that but in my events where would those go? I suck at coding im sorry just really confused about all that

  5. #5
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,597
    I don't know your db. You will have to adapt the code by using your object and control names. The events used are shown in the procedure declarations. NotInList for the combobox and a button Click on the add record form.

    There are many tutorials on the web regarding NotInList. I provided two. If you need more guidance, search web. Post attempted code for analysis if you still have issues.
    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.

  6. #6
    RoundTrip is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Feb 2014
    Posts
    28
    Question? Could I not do a lookup field, and restrict the people from adding anything new without pressing the pretty little edit button at the bottom of the form? Make/ sense?

  7. #7
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,597
    Yes, you can go that route.

    Code in the combobox BeforeUpdate event could do the Lookup and if value not found, cancel the update, set the combobox to null, give the user a popup message about the add record button.
    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.

  8. #8
    RoundTrip is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Feb 2014
    Posts
    28
    Thankyou, that worked amazingly, I am just not skilled enough to do the coding part, it is very difficult for me and I just need this to work, not really be just simply drop dead amazing, I appreciate this! Solved!

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

Similar Threads

  1. Combox box Item List
    By engr_saud1 in forum Access
    Replies: 1
    Last Post: 04-04-2013, 06:50 AM
  2. Replies: 8
    Last Post: 05-14-2012, 09:49 AM
  3. not in edit list
    By Andyjones in forum Programming
    Replies: 2
    Last Post: 04-16-2012, 11:40 PM
  4. Edit List Items
    By Broderhol in forum Forms
    Replies: 3
    Last Post: 02-23-2011, 05:51 PM
  5. SWITCHBOARD MANAGER DISABLED ALL THE MENU AND EDIT OPTION
    By ranjit_dutt in forum Programming
    Replies: 0
    Last Post: 04-13-2007, 08:39 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