473,394 Members | 1,724 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,394 software developers and data experts.

Prevent two people from signing in at same time using the same logininfo?

this is probably very simple but I don't know. Is there a way to
prevent two people from signing
on to an Access Application using the some login information????

I can't have two people on the application at the same time with the
same user name. I use currentuser for some locking and filtering.

Thanks for any help.

ray
Dec 4 '07 #1
4 1634
"eighthman11" <rd******@nooter.comwrote in message
news:b5**********************************@w28g2000 hsf.googlegroups.com...
this is probably very simple but I don't know. Is there a way to
prevent two people from signing
on to an Access Application using the some login information????

I can't have two people on the application at the same time with the
same user name. I use currentuser for some locking and filtering.

Thanks for any help.

ray
Two suggestions:
1. Provide a unique username/password to each user and tell them not to
share.
or
2. Create a table and store the field CurrentUser() as each person logs in.
Then delete the record when they exit the database. If the record already
exists when somebody logs in, then give them a msg and docmd.quit

Fred Zuckerman
Dec 4 '07 #2

"Fred Zuckerman" <Zu********@sbcglobal.netschreef in bericht news:Es******************@newssvr13.news.prodigy.n et...
"eighthman11" <rd******@nooter.comwrote in message
news:b5**********************************@w28g2000 hsf.googlegroups.com...
>this is probably very simple but I don't know. Is there a way to
prevent two people from signing
on to an Access Application using the some login information????

I can't have two people on the application at the same time with the
same user name. I use currentuser for some locking and filtering.

Thanks for any help.

ray
Two suggestions:
1. Provide a unique username/password to each user and tell them not to
share.
or
2. Create a table and store the field CurrentUser() as each person logs in.
Then delete the record when they exit the database. If the record already
exists when somebody logs in, then give them a msg and docmd.quit

Fred Zuckerman

Also, when using suggestion 2, provide a way to 'clear' the CurrentUser-login record !

This is really needed, because at times they will *not* log out the proper way. (e.g. crash or network failure)

You could create a macro 'DiscardCurrentUserLogInRecord' to do the following
--Let them in (don't write a record when the record exists) or...
--Clear the record and quit (so they can log in again the usual way)
You would need another shortcut with the /x switch to run the macro.

Arno R
Dec 4 '07 #3
Arno R wrote:
"Fred Zuckerman" <Zu********@sbcglobal.netschreef in bericht news:Es******************@newssvr13.news.prodigy.n et...
>>"eighthman11" <rd******@nooter.comwrote in message
news:b5**********************************@w28g20 00hsf.googlegroups.com...
>>>this is probably very simple but I don't know. Is there a way to
prevent two people from signing
on to an Access Application using the some login information????

I can't have two people on the application at the same time with the
same user name. I use currentuser for some locking and filtering.

Thanks for any help.

ray

Two suggestions:
1. Provide a unique username/password to each user and tell them not to
share.
or
2. Create a table and store the field CurrentUser() as each person logs in.
Then delete the record when they exit the database. If the record already
exists when somebody logs in, then give them a msg and docmd.quit

Fred Zuckerman

Also, when using suggestion 2, provide a way to 'clear' the CurrentUser-login record !

This is really needed, because at times they will *not* log out the proper way. (e.g. crash or network failure)

You could create a macro 'DiscardCurrentUserLogInRecord' to do the following
--Let them in (don't write a record when the record exists) or...
--Clear the record and quit (so they can log in again the usual way)
You would need another shortcut with the /x switch to run the macro.

Arno R
Also, maybe get the Machine name.
http://www.mvps.org/access/api/api0009.htm

Using LDBView or JetRoster or whatever you can determine who is in the
system. Comparing the machine names to a table can help. If Joe left
the app by crashing and burning, he would not exist so any records of
him in a table could be removed so he could log in.

Dec 4 '07 #4
On Dec 4, 12:25 pm, Salad <o...@vinegar.comwrote:
Arno R wrote:
"Fred Zuckerman" <Zuckerm...@sbcglobal.netschreef in berichtnews:Es******************@newssvr13.news.pr odigy.net...
>"eighthman11" <rdshu...@nooter.comwrote in message
news:b5**********************************@w28g200 0hsf.googlegroups.com...
>>this is probably very simple but I don't know. Is there a way to
prevent two people from signing
on to an Access Application using the some login information????
>>I can't have two people on the application at the same time with the
same user name. I use currentuser for some locking and filtering.
>>Thanks for any help.
>>ray
>Two suggestions:
1. Provide a unique username/password to each user and tell them not to
share.
or
2. Create a table and store the field CurrentUser() as each person logs in.
Then delete the record when they exit the database. If the record already
exists when somebody logs in, then give them a msg and docmd.quit
>Fred Zuckerman
Also, when using suggestion 2, provide a way to 'clear' the CurrentUser-login record !
This is really needed, because at times they will *not* log out the proper way. (e.g. crash or network failure)
You could create a macro 'DiscardCurrentUserLogInRecord' to do the following
--Let them in (don't write a record when the record exists) or...
--Clear the record and quit (so they can log in again the usual way)
You would need another shortcut with the /x switch to run the macro.
Arno R

Also, maybe get the Machine name.http://www.mvps.org/access/api/api0009.htm

Using LDBView or JetRoster or whatever you can determine who is in the
system. Comparing the machine names to a table can help. If Joe left
the app by crashing and burning, he would not exist so any records of
him in a table could be removed so he could log in.- Hide quoted text -

- Show quoted text -
Thanks to everyone who replied. Sorry I didn't get back with you
sooner; I was sent out of town for work.
I ended up doing Fred's idea of keeping track who is signed in by
currentuser(), it worked great. Thanks
again to everyone.
Dec 18 '07 #5

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

Similar topics

3
by: Joel Leong | last post by:
I wish to know the industrial practices for signing assemblies with key files. I genereted a key file to sign my assemblies. Should I sign all my assemblies with a single key files or I shall...
1
by: Martin | last post by:
I have a couple of questions around code signing with MS technology: 1. Is there a way to transfer the generated strong name signing private key directly to a smartcard (or generate it on the...
9
by: Catherine Jo Morgan | last post by:
Can I set it up so that a certain combination of fields can't contain the same entries, on another record? e.g. a combination of FirstName/LastName/address? Or FirstName/LastName/phone? Or...
22
by: alecjames1 | last post by:
I have a form which the user must complete before closing. I have disabled the window x button and use my own exit button. When selected it checks to see if the user has completed the entries...
5
by: polarz | last post by:
I'm having problems signing my assembly. When I try to compile my code I get an error: The keyset is not defined. Here is the code from my AssemblyInfo.cs
1
by: | last post by:
Hello, I have the Microsoft Authenticode certificates (PKCS #7 Certificates, .spc and .pvk files) acquired from Verisign. How do I use this certificates to Sign the manifest for ClickOnce...
0
by: Raffi Basmajian | last post by:
I am trying to understand the difference between signing ClickOnce manifests and signing shared assemblies. My company is building .Net 2005 WinForm applications for internal company use only....
8
by: Nivetha | last post by:
I have requirement like the first page contains LoginName and CompanyName after typing the value clicking Submit button so i am giving in body onload="document.forgotPassword.loginName.focus();...
6
by: raylopez99 | last post by:
Anybody use Strong Name Signing? I think this is used by default for Resource files, which is one reason perhaps I can't get my resource files to work (somehow the public key is messed up, perhaps...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.