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

Possible to trap this multi-user situation?

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.
Jun 27 '08 #1
4 1287
Greetings,

In a multiuser scenario as you describe, the solution you could try is
to have the users perform the edits locally and then submit the edits to
the back end db. Make sure you have referential integrity set (Primary
keys, foreign keys, relationships between the tables). This is how you
control duplicate data entry and invalid updates/deletes. As for
performing the edits locally and then submitting the edits to the
backend - this will reduce record locking - write conflicts (dead
locking on a server db).

Rich

*** Sent via Developersdex http://www.developersdex.com ***

Jun 27 '08 #2
On May 5, 10:44*am, Rich P <rpng...@aol.comwrote:
Greetings,

In a multiuser scenario as you describe, the solution you could try is
to have the users perform the edits locally and then submit the edits to
the back end db. *Make sure you have referential integrity set (Primary
keys, foreign keys, relationships between the tables). *This is how you
control duplicate data entry and invalid updates/deletes. *As for
performing the edits locally and then submitting the edits to the
backend - this will reduce record locking - write conflicts (dead
locking on a server db).

Rich

*** Sent via Developersdexhttp://www.developersdex.com***

*_alt.0
20KDownload
Will try. Thanks for the advice.
Jun 27 '08 #3
"EManning" <ma**********@hotmail.comwrote
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.
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...

Larry Linson
Microsoft Office Access

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.

Jun 27 '08 #4
On May 6, 1:47*am, "Larry Linson" <boun...@localhost.notwrote:
"EManning" <manning_n...@hotmail.comwrote
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.

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...

*Larry Linson
*Microsoft Office Access

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.- Hide quoted text -

- Show quoted text -
Each user does have their own FE. The BE is set to Shared and "Edited
Record". Should it be set to something else?

Jun 27 '08 #5

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

Similar topics

30
by: aka | last post by:
Hi I have a DB2 v8.1 on AIX and DB2 Connect EE on Solaris wich is connected to OS/390 DB2 subsystems via APPC / SNA. I have cataloged the DB2 Connect instance as tcpip node and then the Host DB...
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...
4
by: Carson | last post by:
Hi, I am now writing a c-code, which is extremely computational extensive. My computer is 2.8GHz Pentium (supports hyperthreading), using cygwin cc (latest version) to compile with the...
0
by: Sreedharan | last post by:
Hello everyone, I am a VC++ programmer. When i develop a multi-threaded application in C++, I prefer to use worker thread, so that the main thread and worker thread can communicate using...
1
by: David Stephen | last post by:
Has anyone got some generic code that identifies when a session has timed out in ASP.NE If I add a session variable in Session_Start then when the session times out it readds the variable in...
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...
0
by: Eddie | last post by:
In Microsoft Access form, combo box can be binded to the table or query and can be shown as multi column, getting a actual binded column and showing columns. I'm struggling to make a...
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...
6
by: temper3243 | last post by:
Hi Can someone explain me what is happening below ? Why is it printing 401380 $ cat scanf.c #include<stdio.h> int main() { int i; scanf(" %d",&i);
24
by: Yevgen Muntyan | last post by:
Hey, Is it correct that number of value bits in int and unsigned int representation may be the same? If it is so, then INT_MIN may be -(INT_MAX+1) (in mathematical sense), i.e. abs(INT_MIN) is...
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: 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
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
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
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
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...
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.