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

Repost - Possible to trap this multi-user situation?

I posted a question on 5/5/08 asking how to trap an error caused by
multiple users trying to access the same patient. Here's what I
posted:

"Using A2003. I've got an FE with a main form with a subform. The
subform is a mixture of bound and unbound fields. The main form is
unbound and all it has on it is a combobox to choose a patient's
name. Once the patient is chosen, the subform refreshes to show that
patient's data. The problem I'm having is that 2 or more users could
select the same patient and attempt to update the subform. If user
#2
tries to update a bound field (haven't tried unbound yet) on the
subform, they get a "beep" and the "no edit" icon appears in the
record selector on the left-side. I'm trying to trap that to display
a message to them that the patient is being edited by someone else.
But I cannot seem to figure out where the error is occurring. I've
set breakpoints in the Form_Error event, but it won't trap the error.
I've set breakpoints in events for various bound fields on the
subform
but I still cannot trap the error. I would like for other users to
be
able to view the patient's data while another user is editing, just
not be able to edit it.

The BE mdb is set to Shared, and "Edited Record".
Thanks for any help or advice. "

Larry Linson suggested: "In multiuser environments, each user should
have his/her own copy of the
Front End, linked to shared tables with data, in the Back End. That
will
alleviate your problem... provided you use proper locking, which is
certainly possible... "

I stated in my original posting that is how I have it set up. Each
user has their own FE, the BE is set up as "Shared" and "Edited
Record". Is there a better way to set this up?

Thanks for any help or advice.
Jun 27 '08 #1
2 1498
"EManning" <ma**********@hotmail.comwrote in message
news:5f**********************************@34g2000h sh.googlegroups.com...
>I posted a question on 5/5/08 asking how to trap an error caused by
multiple users trying to access the same patient. Here's what I
posted:

"Using A2003. I've got an FE with a main form with a subform. The
subform is a mixture of bound and unbound fields. The main form is
unbound and all it has on it is a combobox to choose a patient's
name. Once the patient is chosen, the subform refreshes to show that
patient's data. The problem I'm having is that 2 or more users could
select the same patient and attempt to update the subform. If user
#2
tries to update a bound field (haven't tried unbound yet) on the
subform, they get a "beep" and the "no edit" icon appears in the
record selector on the left-side. I'm trying to trap that to display
a message to them that the patient is being edited by someone else.
But I cannot seem to figure out where the error is occurring. I've
set breakpoints in the Form_Error event, but it won't trap the error.
I've set breakpoints in events for various bound fields on the
subform
but I still cannot trap the error. I would like for other users to
be
able to view the patient's data while another user is editing, just
not be able to edit it.

The BE mdb is set to Shared, and "Edited Record".
Thanks for any help or advice. "

Larry Linson suggested: "In multiuser environments, each user should
have his/her own copy of the
Front End, linked to shared tables with data, in the Back End. That
will
alleviate your problem... provided you use proper locking, which is
certainly possible... "

I stated in my original posting that is how I have it set up. Each
user has their own FE, the BE is set up as "Shared" and "Edited
Record". Is there a better way to set this up?

Thanks for any help or advice.
You could create a new table that contains two fields, User & PatientName.
Whenever a user selects a patient via the combobox on the main form, a
record could be added/updated in the new table. Also, the table can be
searched to see if that PatientName already exists in the new table. If it
already exists, then another User must already have the subform open, and
the subform can be opened as readonly for the current user (with a msg).
When a User closes the main form, then their record is deleted from the new
table.

As Larry suggested, this processs seems too complicated as Access has
built-in functions to handle this circumstance. Maybe the users merely need
to be educated as to what the "beep" and "no edit" icon mean.

Fred Zuckerman
Jun 27 '08 #2
On May 8, 9:05*am, "Fred Zuckerman" <Zuckerm...@sbcglobal.netwrote:
"EManning" <manning_n...@hotmail.comwrote in message

news:5f**********************************@34g2000h sh.googlegroups.com...


I posted a question on 5/5/08 asking how to trap an error caused by
multiple users trying to access the same patient. *Here's what I
posted:
"Using A2003. *I've got an FE with a main form with a subform. *The
subform is a mixture of bound and unbound fields. *The main form is
unbound and all it has on it is a combobox to choose a patient's
name. *Once the patient is chosen, the subform refreshes to show that
patient's data. *The problem I'm having is that 2 or more users could
select the same patient and attempt to update the subform. *If user
#2
tries to update a bound field (haven't tried unbound yet) on the
subform, they get a "beep" and the "no edit" icon appears in the
record selector on the left-side. *I'm trying to trap that to display
a message to them that the patient is being edited by someone else.
But I cannot seem to figure out where the error is occurring. *I've
set breakpoints in the Form_Error event, but it won't trap the error.
I've set breakpoints in events for various bound fields on the
subform
but I still cannot trap the error. *I would like for other users to
be
able to view the patient's data while another user is editing, just
not be able to edit it.
The BE mdb is set to Shared, and "Edited Record".
Thanks for any help or advice. "
Larry Linson suggested: *"In multiuser environments, each user should
have his/her own copy of the
Front End, linked to shared tables with data, in the Back End. *That
will
alleviate your problem... provided you use proper locking, which is
certainly possible... "
I stated in my original posting that is how I have it set up. *Each
user has their own FE, the BE is set up as "Shared" and "Edited
Record". *Is there a better way to set this up?
Thanks for any help or advice.

You could create a new table that contains two fields, User & PatientName.
Whenever a user selects a patient via the combobox on the main form, a
record could be added/updated in the new table. Also, the table can be
searched to see if that PatientName already exists in the new table. If it
already exists, then another User must already have the subform open, and
the subform can be opened as readonly for the current user (with a msg).
When a User closes the main form, then their record is deleted from the new
table.

As Larry suggested, this processs seems too complicated as Access has
built-in functions to handle this circumstance. Maybe the users merely need
to be educated as to what the "beep" and "no edit" icon mean.

Fred Zuckerman- Hide quoted text -

- Show quoted text -
Yeah, I'm thinking just educating them on the beep and "no edit" icon
would be sufficient. Multiple users on the same patient will rarely
happen. Good suggestion on the new table. I may decide to go with
that. Thanks.

Jun 27 '08 #3

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

Similar topics

2
by: aj | last post by:
DB2 WSE LUW 8.1 Fixpak 5 Red Hat AS 2.1 Has anyone ever seen a db2diag.log indicate that a trap file was written, but it is *not* written? For the 3rd time in 18 months, I had a production...
12
by: Arno R | last post by:
Hi all, This is a repost of a message posted at october 6. The answer I got was about MapiMessages.AttachmentIndex. I think I need the MSMAPI32.OCX to use this. (I don't have this file on my PC)...
14
by: Steve McLellan | last post by:
Hi, Sorry to repost, but this is becoming aggravating, and causing me a lot of wasted time. I've got a reasonably large mixed C++ project, and after a number of builds (but not a constant...
15
by: aikwee | last post by:
hi all, i have a software written in vb.net which has many thread in it. The software basically use about 8 threads to monitor in coming data from serial port, and some other thread that...
18
by: Colin McGuire | last post by:
Hi - this was posted last weekend and unfortunately not resolved. The solutions that were posted almost worked but after another 5 days of working on the code everynight, I am not further ahead....
11
by: pemo | last post by:
Ambiguous? I have a student who's asked me to explain the following std text (esp. the footnote). 6.2.6.1.5 Certain object representations need not represent a value of the object type. If...
12
by: Jack | last post by:
Since, I have not got some desired advise, I am reposting this for some asnwer/valuable suggestion. Thanks. THE FOLLOWING IS A PART OF CODE FROM A ASP PAGE <% sql01 = "SELECT COUNT(*) AS...
11
by: pmarisole | last post by:
I am trying to use the vbscript "split" function on a multi-select field. I am trying to do a mass update of several records at a time. I am getting an error and I'm not sure what to do. Here is...
10
by: pemo | last post by:
As far as I understand it, a trap representation means something like - an uninitialised automatic variable might /implicitly/ hold a bit-pattern that, if read, *might* cause a 'trap' (I'm not...
4
by: Christian Philippart | last post by:
Hi, How can I adjust the row height in a grid with multiple lines in a row? Thank you Christian.
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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: 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
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.