G
Guest
I have created a generic form opening module.
Sub OpenFormSecure(strFormName As String, Optional strOpenView As String)
The module is passed the form name and the view (Normal, Datasheet). for
example, I might call the module with the code
OpenFormSecure ("frmMenu", "acNormal")
After some checking of the security for the person requesting the form the
following line is used
DoCmd.OpenForm strFormName, strOpenView
Problem is that it doesnt like acNormal or acFormDS as a string value. Any
suggestions as to how I can pass the view value?
Sub OpenFormSecure(strFormName As String, Optional strOpenView As String)
The module is passed the form name and the view (Normal, Datasheet). for
example, I might call the module with the code
OpenFormSecure ("frmMenu", "acNormal")
After some checking of the security for the person requesting the form the
following line is used
DoCmd.OpenForm strFormName, strOpenView
Problem is that it doesnt like acNormal or acFormDS as a string value. Any
suggestions as to how I can pass the view value?