Solved

Auto sequence in a table

Posted on 2006-11-24
9
870 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
9 Comments
 
LVL 85

Accepted Solution

by:
Scott McDaniel (Microsoft Access MVP - EE MVE ) earned 500 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
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

AutoNumbers should increment automatically, without duplicates.  But sometimes something goes wrong, and the next AutoNumber value is a duplicate.  This article shows how to recover from this problem.
Did you know that more than 4 billion data records have been recorded as lost or stolen since 2013? It was a staggering number brought to our attention during last week’s ManageEngine webinar, where attendees received a comprehensive look at the ma…
Basics of query design. Shows you how to construct a simple query by adding tables, perform joins, defining output columns, perform sorting, and apply criteria.
With Microsoft Access, learn how to specify relationships between tables and set various options on the relationship. Add the tables: Create the relationship: Decide if you’re going to set referential integrity: Decide if you want cascade upda…

691 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