+ Reply to Thread
Results 1 to 1 of 1

Number Field That Adjusts Based on Gaps and Duplicates?

  1. #1
    Registered User
    Join Date
    04-30-2013
    Location
    Idaho, USA
    MS-Off Ver
    Excel 2010
    Posts
    6

    Number Field That Adjusts Based on Gaps and Duplicates?

    Hello everybody; this is a great forum. Here's my problem: My database tracks keys and keyrings given to staff. Each record has a field called "KeyRingOrder" which is simply a sequencial number that denotes where that key is on the key ring. The problem is that if our locksmith takes key # 2 off of a maintainence key ring (~20 keys), then the user has to manually change the KeyRingOrder of keys 2-20 to keys 3-19 (and visa versa if he adds a new key).

    Does anyone know the code to have Access automatically detect a gap or a duplicate in the KeyRingOrder field and adjust it accordingly? The keyrings are viewed individually in a query, so the KeyRingOrder is technically a primary key within the query. However, there is a separate KeyID field that the database actually uses as the primary key for the database.
    Last edited by IllusiveMan; 05-09-2013 at 03:50 PM.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1