Insert additional text to a text box using after update

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • receipt24
    New Member
    • Aug 2008
    • 2

    Insert additional text to a text box using after update

    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
  • missinglinq
    Recognized Expert Specialist
    • Nov 2006
    • 3533

    #2
    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:

    Code:
    Private Sub YourControl_AfterUpdate()
     Me.YourControl = Me.YourControl & " Hi!"
    End Sub
    Welcome to Bytes!

    Linq ;0)>

    Comment

    • receipt24
      New Member
      • Aug 2008
      • 2

      #3
      Just the ticket

      Thanks

      Originally posted by missinglinq
      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:

      Code:
      Private Sub YourControl_AfterUpdate()
       Me.YourControl = Me.YourControl & " Hi!"
      End Sub
      Welcome to Bytes!

      Linq ;0)>

      Comment

      • missinglinq
        Recognized Expert Specialist
        • Nov 2006
        • 3533

        #4
        Glad we could help!

        Linq ;0)>

        Comment

        Working...