Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9142397
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T09:46:27+00:00 2026-06-17T09:46:27+00:00

Currently I’ve attached a function to a command button on my form which retrieves

  • 0

Currently I’ve attached a function to a command button on my form which retrieves what the user inputs into the textbox on the form; this works fine but I want to emulate this behaviour with the ENTER key. How can I go about doing this?

I tried the Enter Property on the textbox but that only occurs when focus has been transfered to the textbox, not when i press enter after input.

I’ve read about the KeyUp event for VB but there’s got to be an easier way – I’ve googled this but can’t find what Im looking for. Any suggestions?

Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T09:46:28+00:00Added an answer on June 17, 2026 at 9:46 am

    In many cases, the After Update event is suitable for working with data entered into a textbox, for example:

    Private Sub txtFilter_AfterUpdate()
        Me.Filter = "Content " & Me.txtFilter.Text
        Me.FilterOn = True
    End Sub
    

    However, if you need to edit or validate the data, Before Update is more suitable.

    Private Sub txtText_BeforeUpdate(Cancel As Integer)
        If Me.txtText = "Invalid" Then
            Me.Undo
            Cancel = True
        End If
    End Sub
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

currently i am saving user uploaded image files as follows: public_html/img/user/$category/$username/$imagename however, is this
Currently, I am using the following command to change dos2unix line endings, but this
Currently, I have this selector: .form .mid td p:last-child:not(:only-child) { margin-bottom: 0; } It's
Currently I am using HTML files for parts of my user interface. I display
Currently I have 2 ways of displaying images in a cell, which way will
Currently working with converting SQLException error messages into messages that are more useful for
Currently I have this code: <?php echo '<meta name=robots content=noindex>'; $arr = json_decode(file_get_contents(http://media1.clubpenguin.com/play/en/web_service/game_configs/ paper_items.json),true);
currently I'm struggling with maps which should contain themselves. But I don't know the
Currently I use /etc/init.d/supervisor restart but this restarts all processes under supervisor. Is there
Currently I have made a flash/as3 Snake game which I want to somehow make

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.