ramblinwreck
Registered User.
- Local time
- Today, 07:45
- Joined
- Apr 13, 2007
- Messages
- 28
I did a search both here and google. I found previous discussions and tried to implement what I learned from them but my problem continues...
I have a text box in a subform to a form. When I enter information in this textbox, I want it to become the default value for the next new record.
I have entered the following code in two places (in the subform's afterupdate event and in the control's lost focus event) with the same no result.
me.txtOrderNumber.DefaultValue=me.txtOrderNumber
The code executes.
When I go to the control's properties I can see that the default value has been changed as I directed it via code.
However, when I create a new record with the appropriate button on the main form, the displayed value of the textbox is blank.
Thanks for your help.
I have a text box in a subform to a form. When I enter information in this textbox, I want it to become the default value for the next new record.
I have entered the following code in two places (in the subform's afterupdate event and in the control's lost focus event) with the same no result.
me.txtOrderNumber.DefaultValue=me.txtOrderNumber
The code executes.
When I go to the control's properties I can see that the default value has been changed as I directed it via code.
However, when I create a new record with the appropriate button on the main form, the displayed value of the textbox is blank.
Thanks for your help.