Results 1 to 6 of 6
  1. #1
    ausama.ly is offline Novice
    Windows 7 64bit Access 2013 32bit
    Join Date
    Jul 2017
    Posts
    6

    how to show query result in form without popup parameter

    welcome all


    how to show query result in form without popup parameter .
    Database1.zip

  2. #2
    John_G is offline VIP
    Windows 7 32bit Access 2010 32bit
    Join Date
    Oct 2011
    Location
    Ottawa, ON (area)
    Posts
    2,615
    The command6 button on the search form closes the form "Search" before it opens the form "formQ". FormQ has query1 as its record source, but Query1 refers to the form "Search" which is no longer open, so it has to prompt for the value.

    A solution is to minimize (DoCmd.Minimize), but not close, the "Search" form before opening FormQ.

  3. #3
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,913
    Other options are to not close Search form or close after opening FormQ.

    DoCmd.OpenForm "formQ"
    DoCmd.Close acForm, "formQ", acSaveNo
    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.

  4. #4
    ausama.ly is offline Novice
    Windows 7 64bit Access 2013 32bit
    Join Date
    Jul 2017
    Posts
    6
    Quote Originally Posted by John_G View Post
    The command6 button on the search form closes the form "Search" before it opens the form "formQ". FormQ has query1 as its record source, but Query1 refers to the form "Search" which is no longer open, so it has to prompt for the value.

    A solution is to minimize (DoCmd.Minimize), but not close, the "Search" form before opening FormQ.
    Quote Originally Posted by June7 View Post
    Other options are to not close Search form or close after opening FormQ.

    DoCmd.OpenForm "formQ"
    DoCmd.Close acForm, "formQ", acSaveNo
    Thanks for replay ,
    I will correct and tell you the result .

  5. #5
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,913
    Ooops, my suggested code should be:

    DoCmd.OpenForm "formQ"
    DoCmd.Close acForm, "Search", acSaveNo
    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.

  6. #6
    ausama.ly is offline Novice
    Windows 7 64bit Access 2013 32bit
    Join Date
    Jul 2017
    Posts
    6
    solved ...
    Thank you .

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

Similar Threads

  1. Passing parameter form value to a query result
    By OtakiriLad in forum Queries
    Replies: 3
    Last Post: 11-27-2015, 09:25 PM
  2. Replies: 5
    Last Post: 08-31-2015, 01:03 PM
  3. Replies: 3
    Last Post: 07-20-2014, 08:56 PM
  4. Replies: 11
    Last Post: 01-10-2013, 06:23 PM
  5. Do not want to popup parameter query
    By chuki2 in forum Queries
    Replies: 2
    Last Post: 08-02-2012, 12:51 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