Results 1 to 3 of 3
  1. #1
    tariq nawaz is offline Advanced Beginner
    Windows 7 64bit Access 2007
    Join Date
    Aug 2012
    Posts
    31

    how to clear the content combo box when i press save on my form

    when i press the save button it still have the combo box item selected which i selected for the last item.


    can you please guide me the code which i can use to blank the combo selection item as soon as i hit the save button.

    it will be highly appreciated .

    Regards

    A Learner

  2. #2
    Missinglinq's Avatar
    Missinglinq is offline VIP
    Windows 7 64bit Access 2007
    Join Date
    May 2012
    Location
    Richmond (Virginia, not North Yorkshire!)
    Posts
    2,971
    Quote Originally Posted by tariq nawaz View Post
    when i press the save button it still have the combo box item selected which i selected for the last item.
    can you please guide me the code which i can use to blank the combo selection item as soon as i hit the save button.
    The first question, of course, is why do you have a 'save' button,
    which is unnecessary in Access and almost always creates problems?

    Nevertheless, after the Save simply use

    Me.ComboboxName = Null

    Linq ;0)>
    The problem with making anything foolproof...is that fools are so darn ingenious!

    All posts/responses based on Access 2003/2007

  3. #3
    tariq nawaz is offline Advanced Beginner
    Windows 7 64bit Access 2007
    Join Date
    Aug 2012
    Posts
    31
    Quote Originally Posted by Missinglinq View Post
    The first question, of course, is why do you have a 'save' button,
    which is unnecessary in Access and almost always creates problems?

    Nevertheless, after the Save simply use

    Me.ComboboxName = Null

    Linq ;0)>
    input_Winwick_form1.zip
    thanks a lot

    i am a very new . actually i am a novice to databases access and VBA.
    i work in Networks and work with cisco equipment and certifications.
    i have attached the file i am working on.
    i will be really really really thankful to you.
    i know its bit of favour if you could look the file and give me some suggestions regarding code and design.
    i will be so greatful to you for that.

    Regards

    A learner.

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

Similar Threads

  1. want combo box content disappear after selection
    By MissVinegar in forum Forms
    Replies: 7
    Last Post: 03-15-2013, 10:40 AM
  2. Combo Box wont save data to Form
    By pimpzter in forum Access
    Replies: 1
    Last Post: 07-13-2012, 01:25 PM
  3. Replies: 1
    Last Post: 06-28-2012, 09:57 AM
  4. Replies: 1
    Last Post: 02-16-2011, 11:40 AM
  5. How do you file save an 'Attachment' content through code?
    By morespamforya in forum Programming
    Replies: 3
    Last Post: 08-06-2010, 08:58 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 - Senior Forums