Solved

Auto sequence in a table

Posted on 2006-11-24
9
865 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
9 Comments
 
LVL 84

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 84
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
Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

 
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

U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Record with #Error 8 33
Access 2010 change CurrentUser 5 35
record saved form with no buttons or X 3 21
Error 13 when checking Boolean statement 15 32
Introduction When developing Access applications, often we need to know whether an object exists.  This article presents a quick and reliable routine to determine if an object exists without that object being opened. If you wanted to inspect/ite…
Introduction The Visual Basic for Applications (VBA) language is at the heart of every application that you write. It is your key to taking Access beyond the world of wizards into a world where anything is possible. This article introduces you to…
Using Microsoft Access, learn some simple rules for how to construct tables in a relational database. Split up all multi-value fields into single values: Split up fields that belong to other things into separate tables: Make sure that all record…
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…

828 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