ON Close of a query open a form

Posted on 2008-11-09
Last Modified: 2013-11-27
Hello experts, I would like to know if there is an ON CLOSE event of a qry?  I dont believe there is.  If I am on a form1 and open a qry based on dblclick of a field on Form1 then I would like the Form1 to appear after the ON CLOSE of the qry.  

How can this be done if there is not an ON CLOSE event of the qry?  

thank you
Question by:Petrobras
    LVL 77

    Accepted Solution

    Queries do not have events.
    You need to create a form from your query; open the form, not the query and then you can use the form close event to return to form1.

    Author Comment

    ahhhh yes.  I will do that.  thank you

    Featured Post

    Free Trending Threat Insights Every Day

    Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

    Join & Write a Comment

    In a multiple monitor setup, if you don't want to use AutoCenter to position your popup forms, you have a problem: where will they appear?  Sometimes you may have an additional problem: where the devil did they go?  If you last had a popup form open…
    This article describes how to use the timestamp of existing data in a database to allow Tableau to calculate the prior work day instead of relying on case statements or if statements to calculate the days of the week.
    Familiarize people with the process of utilizing SQL Server functions from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Ac…
    Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

    732 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    24 Experts available now in Live!

    Get 1:1 Help Now