Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Public Sub Initiation()
'Create properties first
Dim prp As Object
With CurrentDb
Set prp = .CreateProperty("AppTitle", 10, "Initiation Of All Properties", True)
.Properties.Append prp
Set prp = .CreateProperty("StartupForm", 10, "StartUp", True)
.Properties.Append prp
Set prp = .CreateProperty("AllowBypassKey", 1, True, True)
.Properties.Append prp
Set prp = .CreateProperty("AllowBreakIntoCode", 1, True, True)
.Properties.Append prp
.Properties("AllowFullMenus") = True
.Properties("AllowShortcutMenus") = True
.Properties("StartupShowDBWindow") = True
.Properties("StartupShowStatusBar") = True
.Properties("AllowBuiltInToolbars") = True
.Properties("AllowToolbarChanges") = True
.Properties("AllowSpecialKeys") = True
Application.RefreshTitleBar
End With
Set prp = Nothing
End Sub
Public Sub EnforceDbProperties()
Dim prp As Object
'Reverse properties here
If Application.CurrentUser = [b]"YourUserAccount"[/b] Then
With CurrentDb
If .Properties("AllowByPassKey") = True Then
.Properties("AppTitle") = [b]"YourShinyApplicationTitle"[/b]
Set prp = .CreateProperty("StartupForm", 10, "StartUp", True)
.Properties.Append prp
.Properties("AllowFullMenus") = False
.Properties("AllowShortcutMenus") = True
.Properties("StartupShowDBWindow") = False
.Properties("StartupShowStatusBar") = True
.Properties("AllowBuiltInToolbars") = True
.Properties("AllowToolbarChanges") = False
.Properties("AllowSpecialKeys") = False
.Properties("AllowBypassKey") = False
.Properties("AllowBreakIntoCode") = True
Else
.Properties("AppTitle") = "Hello Master"
.Properties.Delete "StartUpForm"
.Properties("AllowFullMenus") = True
.Properties("AllowShortcutMenus") = True
.Properties("StartupShowDBWindow") = True
.Properties("StartupShowStatusBar") = True
.Properties("AllowBuiltInToolbars") = True
.Properties("AllowToolbarChanges") = True
.Properties("AllowSpecialKeys") = True
.Properties("AllowBypassKey") = True
.Properties("AllowBreakIntoCode") = True
End If
End With
End If
Application.RefreshTitleBar
Set prp = Nothing