Print Page | Close Window

Semaphore.mdb

Printed From: Roger's Access Library
Category: Other Download Libraries
Forum Name: Squires, Neil
Forum Description: Neil Squires's Library
URL: www.rogersaccesslibrary.com/forum/forum_posts.asp?TID=150
Printed Date: 17 Apr 2024 at 11:34pm
Software Version: Web Wiz Forums 12.03 - http://www.webwizforums.com


Topic: Semaphore.mdb
Posted By: Neil Squires
Subject: Semaphore.mdb
Date Posted: 10 Jul 2008 at 3:01am
I developed this solution because on several lists I'm on, there are questions 
each week about clients wanting autonumbers displayed and they get upset when
there are gaps.  They are expecting sequential numbers, and the autonumber 
datatype doesn't quite match what they are looking for.  

This program will allow the developer to get the next number increment. They may 
request either (Max+1), or fill in missing numbers first, then get (Max+1).  The code 
should work in a muti-user environment.  It uses semaphore logic to prevent 2 users
from retrieving the same number at the same time.  

Note: This new functionality is not meant to superscede the autonumber datatype.  
You should still use autonumber for relational integrity, but if the user wants a 
number to see, this is a solution worth looking at. 

Access Version: 2000 and probably newer.
   References:
   Microsoft ActiveX Data Objects 2.1 Library
   Microsoft ADO Ext. 2.7 for DDL and Security

Download Access 2000+ : http://www.rogersaccesslibrary.com/forum/uploads/35/Semaphore.zip - uploads/35/Semaphore.zip



-------------
--

Email: mailto:GreaterDesignConcepts@yahoo.com - GreaterDesignConcepts@yahoo.com
I only ask that the comments be left intact in the code module. Otherwise, it's for use freely by whoever.



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.03 - http://www.webwizforums.com
Copyright ©2001-2019 Web Wiz Ltd. - https://www.webwiz.net