Default Value (Easy)

nmajdan

New Member
Joined
Jun 2, 2004
Messages
28
Quick question on setting the default value in a form.

How do I specify it to be the value in the previous record? I understand the CTR-' when in the form, but I would like for the number to already be in the new form when it is created. And then a play on that would be how do I get the value to equal the value in the previous form plus one? Thanks in advance.
 

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
I don't know if I completely understand, but if you are just trying to display the last record on your form when opened then in the "On Open" event of your form just add

DoCmd.GoToRecord , , acLast

If you want to retrieve a value from that record and display it on a form with a new record, you could create a subform that defaults to the last record and place it on the form with the new record. Then you could manipulate the controls together.
If I'm understanding you
 
Upvote 0
Upvote 0

Forum statistics

Threads
1,221,792
Messages
6,161,995
Members
451,735
Latest member
Deasejm

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