Refresh Text box within an unbound form

cstickman

Board Regular
Joined
Oct 23, 2008
Messages
137
Hello Everyone,

I created a form with a textbox that in the default value field has the now() command to obtain current date and time. I am trying to refresh that field after the user clicks on submit. I would like to have the time update to the new current time. I tried form refresh and public sub requerylist() and nothing seems to refresh that textbox. Any suggestions on how I can obtain this? Thanks
 

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.
When I add this line to a button's Command_Click sub, it causes the textbox to be updated.

Me.Text0.Value = Now()
 
Upvote 0
FYI to all: .value is the default property for a text box. Me.txtDate = Now() is sufficient. Not a big deal I know, but it can add up to a lot in a project.
 
Upvote 0

Forum statistics

Threads
1,221,849
Messages
6,162,425
Members
451,765
Latest member
craigvan888

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