Group:  Microsoft Access ยป microsoft.public.access.security
Thread: Ascertaining whether a Project is password protected

DotNetBag
.NET Development Newsgroups

HTVi
TV Discussion Newsgroups

Our Hot Pick: Rising Antivirus 2006 - Certified by TUV & Checkmark! Get 10% discount by entering this coupon code: ONDISCOUNT10
Rising Antivirus 2006

Ascertaining whether a Project is password protected
pmartin1960[ at ]hotmail.com 28.09.2006 23:26:50
Hi all

My VB6 app scans a folder for MS Access files, and I need to ascertain
whether a found file has a password protected VB Project. My current
code is:

Dim objAccess As New Access.Application
Dim blnProtected as Boolean

objAccess.OpenCurrentDatabase FileName
blnProtected = (objAccess.VBE.VBProjects(1).Protection =
vbext_pp_locked)

Is this correct? Is there a better test for project protection? Note
that 1 may not be the correct index for VBProjects.

Thanks in advance

Paul Martin
Melbourne, Australia

Home | Search | Terms | Imprint | Contact
Newsgroups Reader - provided by WiredBox.Net