Results 1 to 4 of 4
  1. #1
    stephenaa5 is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Oct 2009
    Posts
    72

    Passing parameters to a query

    Good day. I have a query that successfully feeds a MapPoint dataset. There is a button that opens the Mappoint map. I need to filter that query using the button that launches the map (just prior to launch, of course), and am unsure how to do it.



    My user has an interface on a CONTINUOUS form named DashboardFrm. On that form is a text box named ClientSite1 which is what I want to filter based on, for the chosen record on the continuous form. The query being run is "SinglePointMapQry." Each record has a button labeled "map," which is command10.

    So the condensed version is: Pushing the command10 button should pass the value in ClientSite1 to SinglePointMapQry, and then launch c:\singlepointmap.pmt.

    Suggestions? It seems like it should be easy, and I'm making it hard.

    Thank you!

    Stephen.

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    The simplest way would be to have a criteria in the query:

    Forms!DashboardFrm.ClientSite1

    Since you'll be pushing a button in a particular record, that record would be the one used by the query.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    stephenaa5 is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Oct 2009
    Posts
    72

    Thanks!

    I knew I had to be missing something obvious.

    Much appreciated!

    SC

  4. #4
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    Happy to help!
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

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

Similar Threads

  1. Form not passing data to query
    By bobfin in forum Queries
    Replies: 13
    Last Post: 08-11-2010, 05:28 AM
  2. Replies: 3
    Last Post: 07-01-2010, 07:55 PM
  3. Passing Parameters to a Data Access Page
    By stevie6410 in forum Access
    Replies: 0
    Last Post: 10-01-2009, 09:14 AM
  4. Passing a value from a variable to an update query
    By MUKUDU99 in forum Programming
    Replies: 0
    Last Post: 08-24-2008, 11:14 PM
  5. Passing parameters to a report
    By elmousa68 in forum Access
    Replies: 0
    Last Post: 12-07-2006, 01:38 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