By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,573 Members | 3,017 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,573 IT Pros & Developers. It's quick & easy.

Insert additional text to a text box using after update

P: 2
Hi

I am stuck! this will be easy I am sure for you...

I am trying to insert additional text to a text box using the after update function in a form!

For example: would like to insert HI after entering text...

Thanks
Aug 2 '08 #1
Share this Question
Share on Google+
3 Replies


missinglinq
Expert 2.5K+
P: 3,532
Exactly what are you trying to accomplish? You can't insert data using a form's AfterUpdate event; you'll create an endless loop and never be able to move to another record! And the only way to even close the form is to error out!

You can use the AfterUpdate event of a control on a form, such as a textbox. You'd use something like this:

Expand|Select|Wrap|Line Numbers
  1. Private Sub YourControl_AfterUpdate()
  2.  Me.YourControl = Me.YourControl & " Hi!"
  3. End Sub
  4.  
Welcome to Bytes!

Linq ;0)>
Aug 2 '08 #2

P: 2
Just the ticket

Thanks

Exactly what are you trying to accomplish? You can't insert data using a form's AfterUpdate event; you'll create an endless loop and never be able to move to another record! And the only way to even close the form is to error out!

You can use the AfterUpdate event of a control on a form, such as a textbox. You'd use something like this:

Expand|Select|Wrap|Line Numbers
  1. Private Sub YourControl_AfterUpdate()
  2.  Me.YourControl = Me.YourControl & " Hi!"
  3. End Sub
  4.  
Welcome to Bytes!

Linq ;0)>
Aug 2 '08 #3

missinglinq
Expert 2.5K+
P: 3,532
Glad we could help!

Linq ;0)>
Aug 2 '08 #4

Post your reply

Sign in to post your reply or Sign up for a free account.