473,765 Members | 2,008 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Identifying individual users who all use a shared access database.

I have two users, Andrew and Nancy, who each have their own computer
and can connect to a common database called "employees. mdb" which
resides on a network server. On that same network server, there is a
folder containing jpegs of the employee pictures. When either person
brings up an employee's file, the computer goes into the network and
downloads the picture and displays it on the screen as part of the
form. Works fine, EXCEPT:

Andrew ----------------------
Server:Employee s.mdb
Nancy-------------------------

Also on server the folder with jpegs: \pictures

The problem is, Andrew's computer sees the path to the picture folder
as J:\EmployeeData \pictures\, while Nancy's computer sees it as
G:\EmployeeData \pictures\
Whenever a picture is requested, I use VBA code to construct
the path to the picture, such as
J:\EmployeeData \Pictures\Frank enstein.jpg
So, that's fine for Andrew, but Nancy sees nothing, because her
computer does recognize the path to "J". If the module on the server,
namely Emploiyees.mdb, knew who was making the request, it could put
"J" or "K" in the path name. Of course, the module could prompt the
user each time the form looks for a different employee to say, in
effect, "Who are you?", but that is unacceptable.
Also unworkable is to ask the user when first logging on "who
are you" and put the answer into a global variable. This doesn't work
because Andrew and Nancy are often logged on at the same time, and
when the 2nd user logged in, it would clobber the first user's path to
the pictures.
My New Year's question for the group is: Can I determine,
within the server dabatase VBA module, which user is making the
request at the time the request is made?
Thanks and Happy New Year. Pete Brady
Dec 31 '07 #1
3 2114
Baz
You are coming at this from the wrong direction. What you should do is to
specify the full network path of the folder instead of a mapped drive. The
full path will begin \\<server name>\<share name>, and will be the same from
any computer on the network.

"Paul Brady" <pt*****@aol.co mwrote in message
news:e1******** *************** *********@4ax.c om...
>I have two users, Andrew and Nancy, who each have their own computer
and can connect to a common database called "employees. mdb" which
resides on a network server. On that same network server, there is a
folder containing jpegs of the employee pictures. When either person
brings up an employee's file, the computer goes into the network and
downloads the picture and displays it on the screen as part of the
form. Works fine, EXCEPT:

Andrew ----------------------
Server:Employee s.mdb
Nancy-------------------------

Also on server the folder with jpegs: \pictures

The problem is, Andrew's computer sees the path to the picture folder
as J:\EmployeeData \pictures\, while Nancy's computer sees it as
G:\EmployeeData \pictures\
Whenever a picture is requested, I use VBA code to construct
the path to the picture, such as
J:\EmployeeData \Pictures\Frank enstein.jpg
So, that's fine for Andrew, but Nancy sees nothing, because her
computer does recognize the path to "J". If the module on the server,
namely Emploiyees.mdb, knew who was making the request, it could put
"J" or "K" in the path name. Of course, the module could prompt the
user each time the form looks for a different employee to say, in
effect, "Who are you?", but that is unacceptable.
Also unworkable is to ask the user when first logging on "who
are you" and put the answer into a global variable. This doesn't work
because Andrew and Nancy are often logged on at the same time, and
when the 2nd user logged in, it would clobber the first user's path to
the pictures.
My New Year's question for the group is: Can I determine,
within the server dabatase VBA module, which user is making the
request at the time the request is made?
Thanks and Happy New Year. Pete Brady

Dec 31 '07 #2
Paul Brady wrote:
I have two users, Andrew and Nancy, who each have their own computer
and can connect to a common database called "employees. mdb" which
resides on a network server. On that same network server, there is a
folder containing jpegs of the employee pictures. When either person
brings up an employee's file, the computer goes into the network and
downloads the picture and displays it on the screen as part of the
form. Works fine, EXCEPT:

Andrew ----------------------
Server:Employee s.mdb
Nancy-------------------------

Also on server the folder with jpegs: \pictures

The problem is, Andrew's computer sees the path to the picture folder
as J:\EmployeeData \pictures\, while Nancy's computer sees it as
G:\EmployeeData \pictures\
Whenever a picture is requested, I use VBA code to construct
the path to the picture, such as
J:\EmployeeData \Pictures\Frank enstein.jpg
So, that's fine for Andrew, but Nancy sees nothing, because her
computer does recognize the path to "J". If the module on the server,
namely Emploiyees.mdb, knew who was making the request, it could put
"J" or "K" in the path name. Of course, the module could prompt the
user each time the form looks for a different employee to say, in
effect, "Who are you?", but that is unacceptable.
Also unworkable is to ask the user when first logging on "who
are you" and put the answer into a global variable. This doesn't work
because Andrew and Nancy are often logged on at the same time, and
when the 2nd user logged in, it would clobber the first user's path to
the pictures.
My New Year's question for the group is: Can I determine,
within the server dabatase VBA module, which user is making the
request at the time the request is made?
Thanks and Happy New Year. Pete Brady
You might consider using UNC naming conventions instead.
http://www.mvps.org/access/api/api0003.htm
You could even create a field in some table to store the UNC name for
the folder holding the pics.

You could enumerate the drives looking for EmployeeData\pi ctures\...and
hope nobody has a temp directory of the same name.

You could ask the folks to map to a particular drive.

Rainbow
http://www.youtube.com/watch?v=2A2Jt4WOxN8
Dec 31 '07 #3
On Mon, 31 Dec 2007 17:34:31 -0000, "Baz" <ba*@nospam.now herewrote:
>You are coming at this from the wrong direction. What you should do is to
specify the full network path of the folder instead of a mapped drive. The
full path will begin \\<server name>\<share name>, and will be the same from
any computer on the network.
I think that will work, and I'll look into that when I get back to the
site later this week. Thanks.
Dec 31 '07 #4

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

Similar topics

16
2219
by: Wayne Aprato | last post by:
I have several Access 97 databases which are split into front end and back end running off a server. The front end mde is shared by 2 or 3 - absolute maximum of 6 concurrent users. This scenario has been working flawlessly for about 2 years. I am now at a point where these databases need to be converted to Access 2003. I think I read somewhere on this forum that the newer versions of Access are not as tolerant to multiple users...
6
12356
by: Hannu | last post by:
Hi. In the ldb file you can see the users of the mdb-file. If you open the mdb-file your machine and username will be written in the lbd- file. Allthough you close the mdb-file your name won't disappear from the ldb-file, before every user has closed the mdb-file. I have heard that there will be problems if the amount of users will be over 10 in mdb-files. Is that true? Hannu
1
1113
by: Ant | last post by:
Hi I have an Access 97 database sitting on a shared drive on a server, users have various versions of Office (2000 & 2003) they all need to be able to see the tables in the 97 application and some need to be able to make new tables which are also shared with the other users. Can anyone tell me how I would do this? (We don’t have SQL)
4
2504
by: seansan | last post by:
Another Q, Because we sometimes need to repair the shared database I would like to find out if there is a way to "kick" all users from a database. The problem is that I cannot repair the database when it is beeing accessed by another user and this almost always seems to be the case. With another tool I downloaded I can identify the users still in the database and send them a NET message to exit the DB. Does anyone know how I can do...
2
1991
by: Goran | last post by:
How many users can access to SQL server at the same time with web aplication written in C# 2005? What if my database is 1GB and 1000 people access at 1 second - some simple query. My web hosting acc will be http://www.webhost4life.com or something simmilar!
22
17327
by: NewtoAccess | last post by:
Hi, We have a shared Access 2000 database shared among many users within the company I work for. many times, users open up the shared database and forget to close it. So I cant even make modifications to it after work hours since users are logged in. Is there a way to log off users after a long period of inactivity? Let me know, thanks
3
2960
by: theProfessor | last post by:
We are using a shared split database with all users currently using Access 2003. The back end is on a shared drive of a state wide WAN. Each user has a copy of the front end on their local computer. I programmed and maintain the database. We have about 140 users with about a maximum of about 20 concurrent users. I use user level security to determine which of the three groups a user belongs to, and then VB Script and macros show the...
4
1776
beacon
by: beacon | last post by:
I'm having some trouble with my database (what's new, right?) and an error message that seems to appear somewhat randomly for the users that are accessing it. I'm using Access '03 and know it fairly well, but I may be lacking in some of the fundamental areas. When I created the database I placed it on a shared folder on our network for roughly 15 users to access when they needed to enter data. The problem I'm having is that sometimes, when...
5
350
by: themastertaylor | last post by:
I have developed a database, split it, loaded the back end onto a shared folder on the network and placed a copy of the front end on each user's pc. the database is set to open in shared mode, however as soon as one user logs in the others can't causing access to lock up/ not respond. all the users have access 2007 installed, and definitely have their own front end - any ideas how to fix this?!
0
9404
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10007
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9835
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7379
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6649
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5423
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3926
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3532
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2806
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.