Results 1 to 2 of 2
  1. #1
    behnam is offline Advanced Beginner
    Windows 7 32bit Access 2010 32bit
    Join Date
    May 2014
    Posts
    72

    How to run a macro when enter pressed on a form?

    Hi all,



    I have a login form where the user enters a username and password and when they click a button called login, it takes them to another page. How can I make this macro run whenever enter is pressed anywhere on the form.

    Thanks.

  2. #2
    Missinglinq's Avatar
    Missinglinq is offline VIP
    Windows 7 64bit Access 2007
    Join Date
    May 2012
    Location
    Richmond (Virginia, not North Yorkshire!)
    Posts
    3,018
    In Form Design View, select the Login Button then go to Properties - Other and change the Default Property to Yes.

    Linq ;0)>

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 6
    Last Post: 05-07-2014, 11:26 AM
  2. Replies: 1
    Last Post: 06-09-2013, 09:21 AM
  3. Replies: 3
    Last Post: 04-17-2012, 03:26 PM
  4. Enter Parameter Value Error in Macro
    By kasimagj in forum Programming
    Replies: 3
    Last Post: 09-19-2011, 03:53 PM
  5. Form to enter all parameters in a macro
    By jackthedog in forum Access
    Replies: 0
    Last Post: 05-05-2009, 04:47 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums