Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / General 2 / January 2008

Tip: Looking for answers? Try searching our database.

renumber a field with addins and deletions

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Graeme - 16 Jan 2008 12:51 GMT
How can I renumber a field sequentially where I have added in numbers and
deleted others. This is not an AutoNumber field.
Tom van Stiphout - 16 Jan 2008 13:47 GMT
You can run some VBA code that loops over the records (ask yourself
how they should be ordered) and updates each record.
This is rarely ever necessary. Can you describe why you think it is
needed in your case?

-Tom.

>How can I renumber a field sequentially where I have added in numbers and
>deleted others. This is not an AutoNumber field.
Graeme - 18 Jan 2008 05:57 GMT
Hi Tom,
In my case, I have a delivery route for our gymnasts in order. If a gymnast
leaves, or we get a new gymnast, I don't want to have to go to (eg) 7.5 or
7.8 to geet the correct order (nor do I want to go from 35 to 38). I would
only need to run this if there were any deletiions or additions. At the
moment, I have it going 10, 20, 30, 35, 37, 40, 60, 65, 80, etc, and it looks
messy.
Cheers!
Graeme

> You can run some VBA code that loops over the records (ask yourself
> how they should be ordered) and updates each record.
[quoted text clipped - 5 lines]
> >How can I renumber a field sequentially where I have added in numbers and
> >deleted others. This is not an AutoNumber field.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.