Open Form ready for new record

Excel Facts

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.
bat17's suggested putting it in the _Open event for the form.
What this means is this:

Create your form - base it on a table or query using the wizard interface.
Save it
Re-open in design mode. Right click the blue bar at the top of the form and select properties
Go to the Event Tab
Under the entry for On Open click in the field
A little select down arror and a button with ... in it will appear.
Hit the down arrow and select [Event Procedure]
Then, hit the three dots (button)

This takes you into the code module for the form (just now created)

Add that line

Mike
 
Upvote 0

Forum statistics

Threads
1,221,828
Messages
6,162,226
Members
451,755
Latest member
Waybo

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