Results 1 to 3 of 3
  1. #1
    brandonze is offline Advanced Beginner
    Windows Vista Access 2007
    Join Date
    Mar 2011
    Posts
    49

    Button Help


    Is there a Macro that I can write that would clear unbound text boxes on my form when I click a button?

  2. #2
    brandonze is offline Advanced Beginner
    Windows Vista Access 2007
    Join Date
    Mar 2011
    Posts
    49
    Let me rephrase what I am trying to do. I have a sign in form for my confereances and after I hit the save button, it clears most of the fields. Basicly everthing that is bound to that record.

    However, the text boxes that I use to pull up my employees information, do not clear. How do I clear these when the button is pressed?

  3. #3
    orange's Avatar
    orange is online now Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,747
    I would use some vba. When you hit the Save button, you are (I believe) exectuting the button's On Click event. So, in the On Click event add some code along these lines at t he end of the existing code

    yourTxtField1 = ""
    yourTxtField2 = ""
    ...
    yourTxtFieldx = ""

    When the button is clicked, your save would occur and the yourTxtFields would be set to zero length strings

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

Similar Threads

  1. Replies: 10
    Last Post: 03-21-2011, 02:46 PM
  2. button add new
    By jagguy in forum Forms
    Replies: 1
    Last Post: 03-14-2011, 03:04 AM
  3. Button Collection
    By pkstormy in forum Code Repository
    Replies: 0
    Last Post: 08-30-2010, 10:21 PM
  4. Replies: 1
    Last Post: 07-27-2010, 02:27 PM
  5. Replies: 6
    Last Post: 02-09-2010, 07:53 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