To make all subsequent new records default to last entered
value in a text box, set the text box's DefaultValue
property in the text box's AfterUpdate event:
For a DateTime field:
Me.textbox.DefaultValue = _
Format(Me.textbox, "\#m\/d\/yyyy\#")
For a numeric type field:
Me.textbox.DefaultValue = Me.textbox
For a Text field:
Me.textbox.DefaultValue = """" & Me.textbox & """"
Thank you both for the code. It works perfect.
I will hold on to both codes for future reference.
Ask a Question
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.