Re: Generating Unique Numbers on a Form with Multi-users
- From: "Rick Brandt" <rickbrandt2@xxxxxxxxxxx>
- Date: Mon, 18 Dec 2006 12:17:50 GMT
"Keith Wilby" <here@xxxxxxxxx> wrote in message
news:45864dc6$1_1@xxxxxxxxxxxxxxxxxxxxxxxxx
"Douglas J. Steele" <NOSPAM_djsteele@xxxxxxxxxxxxxxxxx> wrote in message
news:O$dZngFIHHA.4896@xxxxxxxxxxxxxxxxxxxxxxx
Not sure that's appropriate in a multi-user environment, Keith. While the
odds are very low, it's possible two users may grab the same value that way.
Works fine for me Doug, but I always do a refresh immediately and don't allow
deletions (provide a "deleted record" flag instead).
What does refreshing have to do with it? If a user navigates to the new record
position he can let the form sit like that indefinitely before he actually
enters and saves a record. During that interval numerous other users will have
already used the default number on his form as well as many higher ones. He is
virtually guaranteed to get an error unless your idea of "multi-user" is very
conservative.
Not to mention that assigning this value with the DefaultValue property doesn't
work at all on a continuous form (even in a single user app).
--
Rick Brandt, Microsoft Access MVP
Email (as appropriate) to...
RBrandt at Hunter dot com
.
- Follow-Ups:
- Re: Generating Unique Numbers on a Form with Multi-users
- From: Keith Wilby
- Re: Generating Unique Numbers on a Form with Multi-users
- References:
- Generating Unique Numbers on a Form with Multi-users
- From: Nerida via AccessMonster.com
- Re: Generating Unique Numbers on a Form with Multi-users
- From: Keith Wilby
- Re: Generating Unique Numbers on a Form with Multi-users
- From: Douglas J. Steele
- Re: Generating Unique Numbers on a Form with Multi-users
- From: Keith Wilby
- Generating Unique Numbers on a Form with Multi-users
- Prev by Date: Re: anybody not use caculation
- Next by Date: Re: Autonumber
- Previous by thread: Re: Generating Unique Numbers on a Form with Multi-users
- Next by thread: Re: Generating Unique Numbers on a Form with Multi-users
- Index(es):
Relevant Pages
|