PC Review


Reply
Thread Tools Rate Thread

Difficulty with multiple users adding records

 
 
anetcorey@aol.com
Guest
Posts: n/a
 
      15th Jun 2011
I have difficulty when multiple users create records in a customer
service db in Access2003. If two new records are opened at the same
time one user will not be able to save record because both new records
initially were issued same id - the first user who saves his/her
record wins - the other user cannot save data - that user receives a
data violation message.

I understand why this is happening - but I am not sure of the cure. I
am a long time access db user and developer for a small group of
users. I can program vba at an "advanced beginner" level.

This problem has been haunting me for a while - maybe I've hit a
learning curve ceiling.

If anyone out there has some tips I sure would appreciate your input.

Thank you

 
Reply With Quote
 
 
 
 
Bob Quintal
Guest
Posts: n/a
 
      15th Jun 2011
(E-Mail Removed) wrote in
news:0a2a6ed3-6231-49aa-ac74-(E-Mail Removed)
:

> I have difficulty when multiple users create records in a customer
> service db in Access2003. If two new records are opened at the
> same time one user will not be able to save record because both
> new records initially were issued same id - the first user who
> saves his/her record wins - the other user cannot save data - that
> user receives a data violation message.
>
> I understand why this is happening - but I am not sure of the
> cure. I am a long time access db user and developer for a small
> group of users. I can program vba at an "advanced beginner"
> level.
>
> This problem has been haunting me for a while - maybe I've hit a
> learning curve ceiling.
>
> If anyone out there has some tips I sure would appreciate your
> input.
>
> Thank you
>
>


How are you assigning the ID?

--
Bob Q.
PA is y I've altered my address.
 
Reply With Quote
 
John W. Vinson
Guest
Posts: n/a
 
      19th Jun 2011
On Wed, 15 Jun 2011 14:18:05 -0700 (PDT), (E-Mail Removed) wrote:

>I have difficulty when multiple users create records in a customer
>service db in Access2003. If two new records are opened at the same
>time one user will not be able to save record because both new records
>initially were issued same id - the first user who saves his/her
>record wins - the other user cannot save data - that user receives a
>data violation message.
>
>I understand why this is happening - but I am not sure of the cure. I
>am a long time access db user and developer for a small group of
>users. I can program vba at an "advanced beginner" level.
>
>This problem has been haunting me for a while - maybe I've hit a
>learning curve ceiling.
>
>If anyone out there has some tips I sure would appreciate your input.
>
>Thank you


I use a (copyrighted, but variants are widely available on the web) technique
from Getz et al.'s _Access 97 Developer's Handbook_. It uses a table of
"seeds", one for each table which needs a unique ID. The code opens this table
exclusively; retrives the current ID for this table; increments it by one and
stores it back in the table; then closes the table and returns the value that
it retrived to the calling query.

Note that if you use an Autonumber Access takes care of this for you
automatically; an autonumber value is "used up" the instant the new record is
created, and another user will only get a duplicate if you've got a buggy
version of Access (and such versions have existed at times over the years).
--

John W. Vinson [MVP]
Microsoft's replacements for these newsgroups:
http://social.msdn.microsoft.com/For...-US/accessdev/
http://social.answers.microsoft.com/.../en-US/addbuz/
and see also http://www.utteraccess.com
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Adding Multiple Records SDCT Microsoft Access Form Coding 2 14th Mar 2008 07:07 PM
Adding multiple records at once..Is it possible? =?Utf-8?B?ZGlhYXJl?= Microsoft Access Forms 13 16th May 2007 09:56 PM
Adding multiple records Mike Microsoft Access Form Coding 5 6th Oct 2004 02:28 AM
Adding multiple records WWV Microsoft Access Forms 3 17th Oct 2003 09:09 PM
Difficulty installing Word for multiple users Nick Windows XP General 1 20th Sep 2003 03:32 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:29 AM.