Clear Form Contents

  • Thread starter Thread starter molsonexpert
  • Start date Start date
M

molsonexpert

I have a form with several unbound controls (text boxes). Is there a command
I can link to a button that, when clicked, clears the contents of the
controls that a user has filled in? Can this also be applied to specific
controls? Basically, if a user has entered data, I want them to have the
option of starting over again without closing and re-opening the form.

thanks.

steve.
 
I have a form with several unbound controls (text boxes). Is there a command
I can link to a button that, when clicked, clears the contents of the
controls that a user has filled in? Can this also be applied to specific
controls? Basically, if a user has entered data, I want them to have the
option of starting over again without closing and re-opening the form.

thanks.

steve.

If it's just a few controls, code the click event of the command
button:
[ControlA]=Null
[ControlB] = Null
etc.
 
A simple method would be to place a button on your form, and on the
OnClick event...
(use your own names)
[YourUnboundTextField1] = ""
[YourUnboundTextField2] = ""
[YourUnboundNumericField1 = 0
etc... for all the fields you want to clear.
 
Back
Top