Results 1 to 4 of 4
  1. #1
    HLTAYLOR is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jun 2013
    Location
    Clinton, SC
    Posts
    13

    Need Parameter Query to Open Form


    We use forms that have alpha-numeric values we assign to them. I know how to create a parameter query to ask which specific record the user is looking for, but I don't know how to structure a macro to open the specific record in a form. Anybody?

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,815
    Use code to reference control on form. I don't use macros, only VBA, like:

    DoCmd.OpenForm "form name", , , "ID=" & Me.controlname

    I know macros have equivalent structure.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    HLTAYLOR is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jun 2013
    Location
    Clinton, SC
    Posts
    13
    Thanks June7. Does anyone know the equivalent macro structure? I know nothing about using VBA.

  4. #4
    HLTAYLOR is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jun 2013
    Location
    Clinton, SC
    Posts
    13
    Figured in out!! Use OpenRecord macro. Under Filter Name, enter the name of the parameter query. Leave the condition blank. Whooo hoo!!

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

Similar Threads

  1. Replies: 1
    Last Post: 02-28-2013, 01:20 PM
  2. Parameter query with DropBox through Form
    By dbalilti in forum Forms
    Replies: 17
    Last Post: 06-01-2012, 09:34 AM
  3. Opening form with parameter query
    By Lowell in forum Forms
    Replies: 5
    Last Post: 04-01-2012, 04:46 PM
  4. Replies: 3
    Last Post: 04-27-2011, 06:34 PM
  5. Re-Usable form/query parameter
    By nostr4d4m in forum Queries
    Replies: 1
    Last Post: 03-16-2011, 10:20 AM

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