MS ACCESS 2007 Create simple internal password to open a Form

Password to DB not necessary.
We want the DB open to all PH users.
However, there is one Adm user that needs to have a simple (No encrytion, etc needed) to open the Adm Menu Form.
willjxAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Eric ShermanAccountant/DeveloperCommented:
See this post ... I posted this solution to a similar question last year.

http://www.experts-exchange.com/Microsoft/Applications/Q_27862313.html#a38391562

ET
0
Rey Obrero (Capricorn1)Commented:
0
Boyd (HiTechCoach) Trimmell, Microsoft Access MVPDesigner and DeveloperCommented:
Since this is a multi-user database you will need to have it split into a front end and back end.

In that case, I like to keep it keep it simple and put the put the admin forms and etc into a separate front end?
0
Big Business Goals? Which KPIs Will Help You

The most successful MSPs rely on metrics – known as key performance indicators (KPIs) – for making informed decisions that help their businesses thrive, rather than just survive. This eBook provides an overview of the most important KPIs used by top MSPs.

slubekCommented:
Why do you want your admin to remember another password?
Private Declare Function apiGetUserName Lib "advapi32.dll" Alias _
    "GetUserNameA" (ByVal lpBuffer As String, nSize As Long) As Long

Function fOSUserName() As String
' Returns the network login name
Dim lngLen As Long, lngX As Long
Dim strUserName As String
    strUserName = String$(254, 0)
    lngLen = 255
    lngX = apiGetUserName(strUserName, lngLen)
    If ( lngX > 0 ) Then
        fOSUserName = Left$(strUserName, lngLen - 1)
    Else
        fOSUserName = vbNullString
    End If
End Function

Open in new window

Compare fOSUserName() result with your admin username and based on that enable/show  button running your Admin form.
0
willjxAuthor Commented:
Sorry for not getting back sooner.  I like the idea.  However,
I tried the code without success.
I'm not a VB person. I sent it to a couple of system IT people in my dept., and they couldn't help with where I probably have to modify it to fit my environment.
I was actually looking for something much simpler that could just use the ACCESS query system inasmuch as there is no need for special security -just a method to prevent users other than the administrator from stumbling into the Adm Menu.
Thanks.
0
Boyd (HiTechCoach) Trimmell, Microsoft Access MVPDesigner and DeveloperCommented:
I was actually looking for something much simpler that could just use the ACCESS query system inasmuch as there is no need for special security -just a method to prevent users other than the administrator from stumbling into the Adm Menu.

The simplest way I know is to place the admin menu and objects in a separate  front end.  I use this method a lot.

FWIW: For any type of security to be effective it will not be that simple to create. If if is, then it will usually also be very easy to circumvent.

I agree with slubek, that if possible compare the Windows user name to a list of admin users to allow access to the admin menu and objects.
0
Boyd (HiTechCoach) Trimmell, Microsoft Access MVPDesigner and DeveloperCommented:
I put together an example that you can import into your database and use

It has two forms:
1) Use a password
2) Uses Windows user name


See attached:
FormSecurity.accdb
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
willjxAuthor Commented:
Perfect.
Thanks much...
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Applications

From novice to tech pro — start learning today.