Results 1 to 3 of 3
  1. #1
    alex_raju is offline Advanced Beginner
    Windows XP Access 2003
    Join Date
    Jun 2011
    Posts
    56

    Question open a small popup form by pressing functional key.....

    hi,


    i have a ms access 2003 form with txtProductID, txtdescription, txtprice, txtqty. now,if i want search a productid i want open a small popup searching form by pressing functional key.....[f6,f7,f8..like] when cursor on txtproductID.

    thankyou

    alex

  2. #2
    ssanfu is offline Master of Nothing
    Windows 2K Access 2000
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664
    The Function Keys
    In Microsoft Windows, key functions vary from application to application. There is, however, some common functionality between programs. Common function key tasks include:

    F1: The F1 key is almost universally used to access help files. By pressing WINDOWS KEY + F1, you can access the Windows help and support center.
    F2: The F2 key is used to rename the selected file or object.
    F3: The F3 key is often used to access the search function of an application. On the desktop, F3 will call up the detailed Search Results window.
    F4: Typing ALT + F4 will close the currently active program.
    F5: This key will refresh the contents of a dialog box (e.g., Save As). In most browsers, F5 will refresh the currently displayed Web page.
    F7: Sometimes used to call the Spell Check function of an application. Microsoft Word and Open Office both support this command.
    F10: The F10 key makes a program’s Menu Bar active. SHIFT + F10 will display an item’s shortcut menu-the equivalent of right clicking on an item.
    F11: This key is used in most browser programs to switch into full-screen mode

    Windows doesn’t use all of the function keys. You can take advantage of this by assigning a program to an “empty” function key. F8, F9 and F12 are good candidates.
    To have F12 open a form, set the property "Key Preview" to YES.
    Then add this code:

    Code:
    Private Sub Form_KeyDown(KeyCode As Integer, Shift As Integer)
       If KeyCode = vbKeyF12 Then
          KeyCode = 0
          DoCmd.OpenForm "Form2"
       End If
    End Sub
    Of course, change "Form2" to your form name.

  3. #3
    alex_raju is offline Advanced Beginner
    Windows XP Access 2003
    Join Date
    Jun 2011
    Posts
    56
    fantastic...

    and very perfect answer with more information

    thank a lot

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

Similar Threads

  1. open small popup form by press functional key
    By alex_raju in forum Access
    Replies: 0
    Last Post: 07-13-2011, 09:20 AM
  2. Form Opening as small window
    By ETCallHome in forum Forms
    Replies: 1
    Last Post: 06-14-2011, 08:16 AM
  3. Popup form
    By triplee23 in forum Forms
    Replies: 1
    Last Post: 10-24-2010, 04:09 PM
  4. Popup Form
    By NISMOJim in forum Forms
    Replies: 1
    Last Post: 10-23-2010, 09:16 AM
  5. Replies: 1
    Last Post: 07-14-2010, 11:55 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