Auto Increment Numbers

G

Guest

I have a slightly tricky autonumbering problem that I need some expert advice on!

I have a table with some accounting information. This field is account numbers and I need the existing account numbers to stay the same and when I add a new record it auto-increments to the next. Here is the tricky part.........I need to autoincrement in the middle of my number set, not the last record. I realize that this could be a problem down the road if I reach the larger numbers in the set, but unfortunately this cannot be changed. I have included this example below to try and properly represent my problem.

Here is my situation......

1,2,3,4,5,6,7,4000,4001

My dataset above represents my problem. I need to add a new record and have then next record auto-increment to 8 and then 9..and so on. We as a firm will never get to 4000....so I dont worry about having this funtion over write my existing data.
I am familair with using the append query with autonumbering and also the Dmax funtion, but I cant get either one to start autoincrementing in the middle........

Any tidbits of help would be most appreciated!!!

Bob
 
R

Rick Brandt

Bob said:
I have a slightly tricky autonumbering problem that I need some expert advice on!

I have a table with some accounting information. This field is account
numbers and I need the existing account numbers to stay the same and when I
add a new record it auto-increments to the next. Here is the tricky
part.........I need to autoincrement in the middle of my number set, not
the last record. I realize that this could be a problem down the road if I
reach the larger numbers in the set, but unfortunately this cannot be
changed. I have included this example below to try and properly represent
my problem.
Here is my situation......

1,2,3,4,5,6,7,4000,4001

My dataset above represents my problem. I need to add a new record and
have then next record auto-increment to 8 and then 9..and so on. We as a
firm will never get to 4000....so I dont worry about having this funtion
over write my existing data.
I am familair with using the append query with autonumbering and also the
Dmax funtion, but I cant get either one to start autoincrementing in the
middle........

Use...

=DMax("YourField", "YourTable", "YourField < 4000") + 1
 
G

Guest

Dear Rick,

I would like to thank you for your information. That was incredibly simple and painless........

I guess the answer doesnt always have to be hard and painful!

Thanks Again.

Bob Millington
 
J

John Vinson

I am familair with using the append query with autonumbering and also the Dmax funtion, but I cant get either one to start autoincrementing in the middle........

Try using

DMax("[fieldname]", "[tablename]", "[fieldname] < 4000") + 1
 
V

Van T. Dinh

But think in advance and get ready to modify before you get to 3999 ...

HTH
Van T. Dinh
MVP (Access)
 
C

citybell

Bob said:
I have a slightly tricky autonumbering problem that I need some expert advice on!

I have a table with some accounting information. This field is account
numbers and I need the existing account numbers to stay the same and when I
add a new record it auto-increments to the next. Here is the tricky
part.........I need to autoincrement in the middle of my number set, not the
last record. I realize that this could be a problem down the road if I
reach the larger numbers in the set, but unfortunately this cannot be
changed. I have included this example below to try and properly represent
my problem.
Here is my situation......

1,2,3,4,5,6,7,4000,4001

My dataset above represents my problem. I need to add a new record and
have then next record auto-increment to 8 and then 9..and so on. We as a
firm will never get to 4000....so I dont worry about having this funtion
over write my existing data.
I am familair with using the append query with autonumbering and also the
Dmax funtion, but I cant get either one to start autoincrementing in the
middle........
Any tidbits of help would be most appreciated!!!

Bob
QUIERES GANAR DINERO PARA PAGAR TUS DEUDAS???
GASTE 5 MINUTOS DE SU TIEMPO Y... LEA ESTO Y VERA
QUE REALMENTE FUNCIONA. Y ADEMAS LEGALMENTE!!

Permíteme empezar diciendo que FINALMENTE LO
ENCONTRE !!!. En serio!, lo encontré!. Y eso
que odio todos esos ESQUEMAS DE HACERTE RICO
RAPIDO!!!. Odio esos esquemas de marketing
con varios niveles, o de hacer órdenes por
correo, o poniendo propaganda en sobre de
correo, etc., la lista es interminable.
Probé todos esos malditos esquemas de
hacerte rico rápido durante 5 años .


Estaba chequeando el NEWSGROUP cuando vi un
artículo que decía de CONSEGUIR DINERO
RAPIDO!!. Pensé ... "EN INTERNET??.


Bueno, tengo que ver que tipo de esquema
pueden presentar en Internet". Este
artículo describía la manera de mandar POR
CORREO UN BILLETE DE US $ 1.00 A SOLO SEIS
PERSONAS Y GANAR US $ 50.000.00 EN EFECTIVO
EN 4 SEMANAS!!!. Bueno, cuanto más pensé
acerca de esto más curioso me ponía,? por
qué?, por la manera en que esto trabajaba y
PORQUE SOLO IBA A COSTARME US $ 6.00 (Y SEIS
ESTAMPILLAS), Y ESO ERA TODO LO QUE TENIA
QUE PAGAR ... Y NADA MAS!!!. O.K., los US $
50.000.00 en efectivo podía ser una punto
alto de alcanzar, pero era posible. Me
figuré que tal vez podía tener un alcance de
$1.000.00 mas o menos así que lo hice!!!.


Como decían las instrucciones en el
artículo, mandé por correo un billete de un
dólar a cada uno de las seis personas en la
lista que contenía el articulo. Incluí una
pequeña nota que decía "POR FAVOR INCLUYAME
EN SU LISTA" junto con el dólar. Luego
rehice la lista en donde saque al primero,
moví una posición arriba a cada uno de los
restantes e incluí mi nombre al final de
ella. Esta fue la forma de lograr que el
dinero comenzara a llegarme!!.

Luego tomé
esta lista que acababa de modificar y la RE-
PUBLIQUE EN TODOS LOS NEWSGROUPS Y BBS
LOCALES, TAMBIEN EN CHATS FOROS Y SITIOS
DONDE FUERA A VERLO MUCHA GENTE
y esperé que el dinero
empezara a llegarme, preparado para recibir
entre $1.000 y $1.500 en efectivo. Pero que
agradable sorpresa cuando todos esos sobres
empezaron a llegarme !!!. Supe enseguida de
que se trataban cuando vi que las
direcciones de retorno provenían de todas
partes del mundo, la mayoría de Estados
Unidos, Canadá y Australia!. En mi primera
semana hice unos 20.00 a 30.00 dólares. Para
el final de la segunda semana tenía hecho un
total de más de US$ 1000.00!!!!! En la
tercera semana recibí más de U$ S 10,000.00 y
todavía seguía llegando más. Esta es mi
cuarta semana y ya recibí un total de US$
23.343.00 !!!!!!FUE EXCITANTE!!! !!!No lo
podía creer!!! Tienes que seguirlo y re-
publicarlo donde te sea posible, cuanto más
se publique y más gente lo vea, habrá más
posibilidades para todos de ganar más
dinero, esto determinará cuánto te llegará
por correo!!!.

Es realmente fácil de
pasarlo... Revisemos las razones de por que
hacerlo: los únicos gastos son 6
estampillas, 6 sobres y 6 dólares (un
billete de UN dólar para cada uno en la
lista), luego re-publicar el articulo con tu
nombre incluido en todos los NEWSGROUPS o
BBS que se te ocurran (esto es gratis) y
luego esperar por los sobre que te lleguen.
Todos tenemos 6 dólares para gastar en una
inversión fácil y que no envuelve ningún
tipo de esfuerzo con UNA ESPECTACULAR
RECOMPENZA DE ENTRE US$ 15.000.00 Y US$
120.000.00 en solo 3 a 5 semanas!. Así que
prívate de jugar a la lotería hoy, o mejor
come en casa en vez de ir afuera e invierte
esos 6 dólares en esto que puede darte una
grata sorpresa!!!. No hay forma de
perder !!!

Como funciona esto exactamente???

cuidadosamente proveo la más
detalladas y simples instrucciones de como
vas a conseguir que te llegue dinero fácil.
Prepárate para lograrlo, esta es la forma...

*********************************************
*************** LISTA DE NOMBRES -- LISTA DE
NOMBRES -- LISTA DE NOMBRES
*********************************************
************************


1). Javier Fernández Villanueva Villegas
Apartado Postal N° 2-614
Guadalajara 2, Jalisco, México.
C.P. 44281

2).-Jorge Padilla Abarca

Misión Sto. Tomas No. 7129 Edif. 1 depto. 204

Frac. Kino sur, c.p. 22223

Tijuana Baja California Norte, México.

3).- Herrera Nestor Rubén

Paul Grousac 2891 (entre las calles Ecuador y Portugal)

Ituzaingo , C.P (1714) Buenos Aires Argentina.

4).-jose ortega lecaros

isla tierra del fuego #8617,la granja -santiago
casilla 51146 correo central -plaza de armas
santiago de chile

5).- Juan manuel cazalla

Terrada 2333 ,C.P(8000)Bahia Blanca
provincia de Buenos Aires, Argentina

6) Zaffrani Claudia Lorena

72 nº1535 1/2 pasillo dpto 2 e/ 25 y 26, C.P. (1900) La Plata.

Provincia de Buenos Aires, Argentina
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top