I have a form I use as a dialog box to set reporting criteria.
There is an unbound text box [DateFrom] on the form.
When/before the form is closed I would like to set the default value of this text box to its current value. (there is currently no default value assigned).
I have tried the following both in the procedure for the 'exit' comand button, and in the OnClose event
But it doesn't change the default value.
Any suggestions?
There is an unbound text box [DateFrom] on the form.
When/before the form is closed I would like to set the default value of this text box to its current value. (there is currently no default value assigned).
I have tried the following both in the procedure for the 'exit' comand button, and in the OnClose event
Code:
Dim MyDate as Date
MyDate = Me![DateFrom]
Me![DateFrom].CurrentValue = MyDate
But it doesn't change the default value.
Any suggestions?