?
Solved

Auto sequence in a table

Posted on 2006-11-24
9
Medium Priority
?
878 Views
Last Modified: 2011-10-03
How do I stop Access from auto filling the next record if it spots a sequence?

eg. In a text field if it put the following records in 1,2,3 it will automatically put a 4 in the next record.

I understand I can stop this if adding to a form but I can't figure out how to stop it when adding directly to the table.

Thanks!
0
Comment
Question by:sbiddle
7 Comments
 
LVL 85

Accepted Solution

by:
Scott McDaniel (Microsoft Access MVP - EE MVE ) earned 2000 total points
ID: 18006944
You can't stop it when adding data directly to a table. More importantly, your users should NEVER be adding data directly to a table.
0
 
LVL 65

Expert Comment

by:rockiroads
ID: 18007005
I take it this is a autonumber field? if so then this is how Access works. Once u create a new record, it automatically gets the next available number and assigns it to you.

What is the exact issue though, why would u want to stop it?

Is it the sequence u are worried about? u can generate random numbers
0
 
LVL 85
ID: 18007164
rocki: I don't think this is an autonumber field, but is instead a standard Numeric or Text field ... if you fill in the first record with 1, the second with 2, then Access will automatically insert a 3 in the third, and a 4 in the fourth, and so on ...
0
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
LVL 65

Expert Comment

by:rockiroads
ID: 18007209
oh, I know what u mean now, durr!!!! having a thick idiot moment there :)
yes, Ive seen that, Ive not seen anything round that, nothing in autocorrect that ive seen either
0
 
LVL 3

Author Comment

by:sbiddle
ID: 18007379
It's just a normal text field.  Also happens on a form set to datasheet.  Thought if I could control it on the table itself that would be the best place to start.  Setting the default for the field to Null seems to work but it's not really what I want.

I thought maybe I was missing a setting somewhere as most things can be controlled - but not this it seems!
0
 
LVL 44

Expert Comment

by:GRayL
ID: 18010220
What version of Access?
0
 
LVL 74

Expert Comment

by:Jeffrey Coachman
ID: 18083416
sbiddle,

In the Table, put an Input mask of:
999

This will allow up to a three digit number and disable the auto-sequence.

For larger numbers, simply increase the mask:
99999999


OR

Use a sequence other than 1,2,3,4  or 2,4,6,8

Instead, try to use a sequence of 10's (Typing 10 then 20 WILL NOT produce a 30 in the next row)
(A sequence of 3's or 5's WILL NOT auto-sequence either.

Jeffrey Coachman
0

Featured Post

 [eBook] Windows Nano Server

Download this FREE eBook and learn all you need to get started with Windows Nano Server, including deployment options, remote management
and troubleshooting tips and tricks

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Microsoft Access is a place to store data within tables and represent this stored data using multiple database objects such as in form of macros, forms, reports, etc. After a MS Access database is created there is need to improve the performance and…
Microsoft Access has a limit of 255 columns in a single table; SQL Server allows tables with over 255 columns, but reading that data is not necessarily simple.  The final solution for this task involved creating a custom text parser and then reading…
With Microsoft Access, learn how to start a database in different ways and produce different start-up actions allowing you to use a single database to perform multiple tasks. Specify a start-up form through options: Specify an Autoexec macro: Us…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…

840 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question