Pressing a Command Button to reset a form

Amit112

Board Regular
Joined
Nov 12, 2004
Messages
52
Hi Guys,
Im new to VBA. I made a form in Access and would like to put a command button there that when pressed, would clear any data that has been filled into the form. Does anyone know how to do this? Thanks for the help guys :biggrin:
Amit
 

Excel Facts

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.
If its a text box your talking about you can use something like

textbox1.text = ""
 
Upvote 0
Its setup as such

Serial:

Description:

test: (and there are other fields)

so if people enter data into it I want a button on the side, a command button, that when it is pressed, that data from that page will be gone in one click
 
Upvote 0

Forum statistics

Threads
1,221,832
Messages
6,162,255
Members
451,757
Latest member
iours

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top