HalloweenWeed
Member
- Local time
- Yesterday, 23:45
- Joined
- Apr 8, 2020
- Messages
- 222
Hi once again all. I have a split-database where I am using some db settings parameters and opening a hidden form to give other objects a settings source to make things change according to the settings without opening a vba recordset to do so. I'm trying to make it easier for future db admins after I leave my job, so simplifying the vba as much as possible without hamstringing the functionality.
So I'm using:
But I need the ability of the user (next admin) to open the settings form and perform or inspect settings, and then restore it to hidden. But when I use this code:
I get an error testing .Visible. Is there an alternative way to test whether the form is hidden? I've googled and searched, but nothing comes up. The results are about other issues with same keywords, but either not about vba, or not about testing the form object itself. Thank you.
So I'm using:
Code:
DoCmd.OpenForm stDocName, , , , , acHidden
But I need the ability of the user (next admin) to open the settings form and perform or inspect settings, and then restore it to hidden. But when I use this code:
Code:
If CurrentProject.AllForms(stDocName).IsLoaded Then
If CurrentProject.AllForms(stDocName).CurrentView = acCurViewFormBrowse Then
If CurrentProject.AllForms(stDocName).Visible Then