Results 1 to 2 of 2
  1. #1
    mrmims is offline Advanced Beginner
    Windows 7 64bit Access 2007
    Join Date
    Jul 2013
    Posts
    53

    Reset ONE SINGLE Text Box to it's Default Value

    Hello,

    I have searched the Web and this site for an answer to how to reset one textbox ONLY to it's default value when a button is clicked. How do I do this VBA?



    I only find info on reseting ALL Controls (for example: https://www.accessforums.net/program...lue-53247.html)

    Thank you for any and all help!

  2. #2
    Ajax is offline VIP
    Windows 8 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    8,279
    the code suggested on post #2 of the link will do what you require

    if your control is named txtCtrl1 then the code for the click event for your button would be

    txtCtrl1=txtCtrl1.DefaultValue

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

Similar Threads

  1. Replies: 12
    Last Post: 03-01-2015, 01:36 PM
  2. Replies: 5
    Last Post: 07-07-2014, 12:00 PM
  3. Replies: 2
    Last Post: 03-12-2014, 01:31 AM
  4. create default rich text in text box
    By enemydr in forum Forms
    Replies: 7
    Last Post: 02-19-2014, 09:38 PM
  5. Reset Combo Box to Default Value After One Hour
    By athyeh in forum Programming
    Replies: 3
    Last Post: 08-14-2013, 10:14 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