473,386 Members | 1,698 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Changing MS Login ID on-the-fly?

I'm building an app that isn't exactly Fort Knox security-wise.

People who use it fall into three categories:

Those that are in a table and have "Edit" permission.
Those that are in the same table and have "Admin" permission
Those that are not in the table at all and have "Browse" permission.

Right now, I'm just casing out on the permission and
enabling/disabling buttons/controls based on permission in each
Form_Open() routine.

I know I can disable F11=>Database Window, but the brass ring would be
to make it more challenging for somebody to directly edit a table by
somehow getting the Database window open or, for that matter, just
doubleclicking on the back end from Windows Explorer.

To that end, I'd like to apply MS Access security "under the table"
so-to-speak.

I'd set security on all tables, but only for three MS Access UserID's:
ReadOnly, Edit, and Admin.

Then, when somebody logged on, I'd trap their LAN UserID; look it up
in the "People" table; case out on the permission level; and log them
in as MS Access UserID ReadOnly, Edit, or Admin.

Is this possible to do? Seems like there may be a chicken-and-egg
conundrum here...
Nov 12 '05 #1
1 1347
No, you can't change the login USERID after the login. Sorry. Not, at least,
with standard Access or any system API calls that I know about.

Larry Linson
Microsoft Access MVP

"PeteCresswell" <Go**********@FatBelly.com> wrote in message
news:74**************************@posting.google.c om...
I'm building an app that isn't exactly Fort Knox security-wise.

People who use it fall into three categories:

Those that are in a table and have "Edit" permission.
Those that are in the same table and have "Admin" permission
Those that are not in the table at all and have "Browse" permission.

Right now, I'm just casing out on the permission and
enabling/disabling buttons/controls based on permission in each
Form_Open() routine.

I know I can disable F11=>Database Window, but the brass ring would be
to make it more challenging for somebody to directly edit a table by
somehow getting the Database window open or, for that matter, just
doubleclicking on the back end from Windows Explorer.

To that end, I'd like to apply MS Access security "under the table"
so-to-speak.

I'd set security on all tables, but only for three MS Access UserID's:
ReadOnly, Edit, and Admin.

Then, when somebody logged on, I'd trap their LAN UserID; look it up
in the "People" table; case out on the permission level; and log them
in as MS Access UserID ReadOnly, Edit, or Admin.

Is this possible to do? Seems like there may be a chicken-and-egg
conundrum here...

Nov 12 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: munish | last post by:
I m using pull model to retrieve records in crystal reports. Is there any way that i can change login information, database and table at runtime(in .Net).
3
by: tchangmian | last post by:
I want to limit user login by writing ASP program. In details, if a user had logged in wrongly for more than three times, then the user will not be abled to log in to the system anymore even...
1
by: Feldman Alex | last post by:
Hi everyone! I need to write a simple application that will change folder attributes for a user that doesn't have administrative privileges. (Example : I'll login as administrator, run an...
2
by: Steve Chatham | last post by:
I have a number of selections in a listbox that would be adjusted based on a user's login info. For instance, if a sales rep logs in, he'll see items A, B, C, D, and E. However, if it's a...
4
by: Robson Carvalho Machado | last post by:
Dear friends, I have an IFRAME that I want to change src url when clicking a button. How can I change IFRAME src using button_click ? <iframe runat="server" frameBorder=0 marginHeight=0...
3
by: Jon Paal | last post by:
using VWD and asp.net 2.0 how do I enable clientside validation in ligin control ? Following code does not produce popup alerts or red asterisks . ==================== <div id="content">...
1
by: IM | last post by:
Hi all, I've done some sniffing around but apart from one post in this newsgroup haven't been able to find much on this topic. We have recently moved (well, quite a while ago but that's...
2
by: JOHNSHELL08 | last post by:
Dear Team, There is a problem related to change ip address there in my network a domain admin user is exist and user knows its password and by this they are able to login with this...
12
by: tvnaidu | last post by:
I have Two kinds of web pagess, one is for control page for only admin login, another one is to view status for user login. initially both html files can view with 192.168.0.10/control.htm and other...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.