How to hide procedure in library MDE
Visual Basic has a procedure properties dialog, which Access does not have. But following trick helps to make a procedure hidden:
Export access module to text using Application.SaveAsText hidden method, add attribute after procedure declaration as:
Attribute ProcName.VB_MemberFlags = "40"
Where ProcName is a name of procedure. Now import back module using LoadFromText.
Export access module to text using Application.SaveAsText hidden method, add attribute after procedure declaration as:
Attribute ProcName.VB_MemberFlags = "40"
Where ProcName is a name of procedure. Now import back module using LoadFromText.
2 Comments:
Hi Alex.
I tried it on MDB and it didn't work. When opening the module, the procedure doesn't show but it also doesn't compile and the procedure can't be called.
Hi Yair,
on what Access version you are trying this?
Post a Comment
<< Home