Knife1
06-08-2011, 07:46 AM
Hi
I have a pop-up form which users can click a button and run and open a query with DoCmd.OpenQuery. However the problem is the query always opens behind the pop-up by default. I thought the way to fix this would be to hide the form while the query is open. I can use Me.Visible = False to hide the form but I need the form to become visible again when query is closed. Onclose event procedure only works with forms I think so does anyone have any ideas for this?
Thanks
I have a pop-up form which users can click a button and run and open a query with DoCmd.OpenQuery. However the problem is the query always opens behind the pop-up by default. I thought the way to fix this would be to hide the form while the query is open. I can use Me.Visible = False to hide the form but I need the form to become visible again when query is closed. Onclose event procedure only works with forms I think so does anyone have any ideas for this?
Thanks