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 / Database Design / June 2006

Tip: Looking for answers? Try searching our database.

automatic numbering

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
LCalaway - 14 Jun 2006 15:33 GMT
Hi-
I have a table design in place using autonumber so that each record will be
unique.  However, in addition to that autonumber, I would like to have a
second field which will automatically increment based only on that second
field.  The incremented number needs to be capable of being overridden and
the next record must pickup the numbering from the previous record.

Is the above possible if there is nothing in the database except a table and
data is entered directly to the table.
Thank you.
L Calaway
KARL DEWEY - 14 Jun 2006 15:52 GMT
Create a query to find the Max of that field.  In your data entry form have a
hidden text field of the query.  Then set default of your field to the hidden
field plus one.

> Hi-
> I have a table design in place using autonumber so that each record will be
[quoted text clipped - 7 lines]
> Thank you.
> L Calaway
Tim Ferguson - 14 Jun 2006 18:30 GMT
>  However, in addition to that autonumber, I would like to have a
> second field which will automatically increment based only on that
> second field.  The incremented number needs to be capable of being
> overridden and the next record must pickup the numbering from the
> previous record.

Why do this in the table? It'll be a nightmare to keep updated every time a
record is inserted or (especially) deleted. As far as I can tell, the
ranking number will not be an attribute of the thing-being-modelled anyway,
because it's going to change.

You may well be better served by using a ranking query to _display_ the
number rather than trying to store it and having it tell lies to you.

B Wishes

Tim F
LCalaway - 15 Jun 2006 16:47 GMT
We are extracting data from thousands of records.  Those records have
numbers already assigned which must be retained; they are part of the
attributes of the original record, and have no other purpose.  All I want to
accomplish is that the extractor doesn't have to enter that number itself in
a field.  The numbers increment, generally without gaps.  The field has to
be one which can be controlled.  And, instead of a form, the extractions are
going directly into a table simply because there are so few fields which are
being extracted.

>>  However, in addition to that autonumber, I would like to have a
>> second field which will automatically increment based only on that
[quoted text clipped - 15 lines]
>
> Tim F
 
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



©2008 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.