Default value

stuartandwil

Board Regular
Joined
Nov 24, 2002
Messages
104
Is there any way to make the default value for a new record default to the last records value. I have drop down boxes to pick from teams 1 - 5 and drop down box for Nights and days then various others. For every new record made that shift I dont want to have to keep selecting the choices for team and shift. Then when new shift come on they pick their values on their first entry to the database but then it defaults to these new values.

Probably not possible! :confused:
 

Excel Facts

Excel Can Read to You
Customize Quick Access Toolbar. From All Commands, add Speak Cells or Speak Cells on Enter to QAT. Select cells. Press Speak Cells.
There are probably several way to do it but here's one to get you started. Add a checkBox in the form header for Nights/Days then in the afterupdate event of the first field they fill in add something like
Code:
If Me![CheckDays] = True Then
Me![SHIFT] = "DAYS"
Else
Me![SHIFT] = "NIGHTS"
End If

HTH

Peter
 
Upvote 0
Can see how this could work but how to I get to see the header in form view. I have put the checkbox in the header of the form but when I go out of design view I don't see the header.

Many thanks
 
Upvote 0
Sorry there, read the help files and got it working as required, however unsure how to tackle the team part, 5 teams 1-5. Any thoughts?

:)
 
Upvote 0

Forum statistics

Threads
1,221,561
Messages
6,160,495
Members
451,653
Latest member
agata

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