Hello everybody,
Is there a way in a form, using VBA code, to know if the database window is hidden or not ?
Explanation : when starting my MSA-2000 application, the database window is set to bet hidden. While still designing my application, I have a button in my menu/splash form that closes the current form and unhides the database window, with this code :
It works fine but not if the databse window is no longer hidden, the button is inoperative. Only way-out is to use the "close" [X] button on the top right corner of the form.
Thank you for your answer(s).
I hope my question is clear enough, French being my mother language ;-o
Is there a way in a form, using VBA code, to know if the database window is hidden or not ?
Explanation : when starting my MSA-2000 application, the database window is set to bet hidden. While still designing my application, I have a button in my menu/splash form that closes the current form and unhides the database window, with this code :
Code:
DoCmd.Close
On Error Resume Next
' sends answer to the confirmation message
' about showing the database window
SendKeys "{Enter}"
Application.RunCommand acCmdWindowUnhide
Thank you for your answer(s).
I hope my question is clear enough, French being my mother language ;-o