Yes. You can put VBA code in the textbox's AfterUpdate event:
Private Sub controlname_AfterUpdate()
Me!controlname.DefaultValue = Chr(34) & Me!controlname & Chr(34)
End Sub
The DefaultValue property needs to be a text string - hence the
quotemarks, chr(34) - and this code sets the default value to the
control's current value.
You know when you are typing in excel and you enter in a few letters and it
comes up with a possible word/match that you have used previously - thats
what i want this text box to do.
You know when you are typing in excel and you enter in a few letters and it
comes up with a possible word/match that you have used previously - thats
what i want this text box to do.
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.