Problem with MS Access.
I want to be able to get a Form propery before opening it. Here I have an example of what I am trying to do. The problem with this code is that it opens the form in InVisible mode and performs the Onload event, OnUnload event etc... And this is what I do not want. I just want to GET specific Form-property.
ANY EXPERTS HELPPP????

******************
--THIS IS WHAT I WANT TO DO
IF Filled(getFormMenuBar(FormName))
THEN
DoCmd.openForm FormName
ELSE
DoCmd.openForm FormName,,,,,acDialog

**********************
--THIS FUNCTION WORKS,BUT NOT THE WAY I WANT IT DO WORK
Private Function getFormMenuBar(ByVal FormName As String) As String
Dim myForm As Form
Dim strMenuBar As String

DoCmd.openForm FormName, , , , , acHidden
Set myForm = Forms(FormName)
If Filled(myForm.MenuBar) Then
strMenuBar = myForm.MenuBar
End If
DoCmd.Close acForm, FormName, acSaveNo
getFormMenuBar = strMenuBar
End Function