Results 1 to 3 of 3
  1. #1
    Middlemarch is offline Competent Performer
    Windows 10 Access 2019
    Join Date
    Mar 2015
    Posts
    344

    Moving within a Range of Numbers


    I have a range of numbers, say 1000-1500 and want to move a number within that range to somewhere else then renumber them all back in sequence.
    I've some ideas but could be reinventing the wheel if something in Access already handles that ?

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,898
    You want to assign a record to a different sequence number?

    Yes, I've seen this type of question before. Here's one discussion https://www.tek-tips.com/viewthread.cfm?qid=631394

    What are your ideas? One possibility is to assign the record to move with a Double value, so if you want to move into position behind record 451, assign it to 451.5. Then open a recordset ordered by the sequence field and loop to reassign all records with sequential whole numbers. The field must be defined as a Double, not Integer or Long.

    Will this process be accomplished by only one user? Multiple users reassigning sequence will conflict.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    Middlemarch is offline Competent Performer
    Windows 10 Access 2019
    Join Date
    Mar 2015
    Posts
    344
    Thank you @June. Yes I do. That 451.5 idea is worth a shot. My idea was to make the number to move zero. Then renumbering everything > 0. Then adding 1 to everything >insert Number, freeing up a spot for it. But had a nagging doubt depending on the move being before/after the insert number there'd be more needed. Then it got a bit confusing and I'd to test by trial and error, so asked here first (just in case something existed to do that).
    There are no multiple users.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 5
    Last Post: 11-18-2018, 01:29 AM
  2. Replies: 10
    Last Post: 08-14-2017, 11:11 AM
  3. Group Consecutive Numbers in a Range
    By ChiSoxFan in forum Queries
    Replies: 1
    Last Post: 03-20-2014, 04:28 PM
  4. Replies: 8
    Last Post: 03-10-2014, 11:47 AM
  5. Generating Range of numbers
    By frikkie in forum Access
    Replies: 1
    Last Post: 07-27-2013, 10:46 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums