clear userform

p4nny

Board Regular
Joined
Jan 13, 2015
Messages
246
Hi,

Is it possible to have a button that will clear the contents entered on to an access userform?

Is there vba code that would sit behind the button?

Many thanks
 

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.
Please explain more fully the rationale and how this will be used. Are you looking to delete a record that already exists or are you looking to clear data that has been entered and not yet been updated to the bound table. Need more information to provide a solution.
 
Upvote 0
In Excel and Word there are UserForms. Access forms are much more powerful. You should have your Access form bound to a query or table. This is much different that than how a Word/Excel Userform works.

To get the full power of an Access form you will need to set the form's record source so it is bound to a table or query. By doing this Access will automatically save the data to the table and clear the form when you move to a new record. AN Access bound form (set the record source) can Create, Read (display), Update and Delete (CRUD) data in a table without adding any buttons ore VBA code!
 
Upvote 0

Forum statistics

Threads
1,215,336
Messages
6,124,331
Members
449,155
Latest member
ravioli44

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