Defining a "numerical" field

W

Wendy

I have a new database I'm creating for my fiance`s office to track the
patient charts for easier lookup.

The one field I'm having trouble with is Patient Record Number. I want the
ability to have them enter a base number an a decimal to differentiate
records belonging to the same patient. This is solely for billing
purposes. The record is extremely simplistic. I have defined the Patient
Number as Number, Long Integer, Auto Decimal (tried 1 or 2), General (tried
Fixed).

If a patient is treated within the same billing period (mind you, this is a
special billing requirement where a county agency actually pays the bill and
I'm merely trying to automate the process for the office manager rather than
her holding out patient files each month until the bill is sent and paid), I
want them to add a new patient record using the base patient # and add a
".1", ".2", etc. So, there could be 2-3 records for the same patient
L/FName:

15113 Doe Jane 09/01/04
15113.1 Doe Jane 09/20/04 etc.

BUT the field keeps reducing the number to only the 15113. The only success
I have had is to change the Data Type from Number to Text, which is ok, but
seems like I should not have to go that route.

How can I get it to display the actual number as entered in the table, in
search results, forms, etc.??

I think this is the last little glitch I need to solve and they will be in
100% productive use of my lil creation. pat pat pat

Thanks again in advance. The help received from this newsgroup thus far has
been great, and quite timely.
 
D

Douglas J. Steele

Integers don't have decimal parts.

Try Number, Single (or Number, Double).
 
C

citybell

Douglas J. Steele said:
Integers don't have decimal parts.

Try Number, Single (or Number, Double).

--
Doug Steele, Microsoft Access MVP

(No private e-mails, please)


is paid),
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
 
C

citybell

Wendy said:
I have a new database I'm creating for my fiance`s office to track the
patient charts for easier lookup.

The one field I'm having trouble with is Patient Record Number. I want the
ability to have them enter a base number an a decimal to differentiate
records belonging to the same patient. This is solely for billing
purposes. The record is extremely simplistic. I have defined the Patient
Number as Number, Long Integer, Auto Decimal (tried 1 or 2), General (tried
Fixed).

If a patient is treated within the same billing period (mind you, this is a
special billing requirement where a county agency actually pays the bill and
I'm merely trying to automate the process for the office manager rather than
her holding out patient files each month until the bill is sent and paid), I
want them to add a new patient record using the base patient # and add a
".1", ".2", etc. So, there could be 2-3 records for the same patient
L/FName:

15113 Doe Jane 09/01/04
15113.1 Doe Jane 09/20/04 etc.

BUT the field keeps reducing the number to only the 15113. The only success
I have had is to change the Data Type from Number to Text, which is ok, but
seems like I should not have to go that route.

How can I get it to display the actual number as entered in the table, in
search results, forms, etc.??

I think this is the last little glitch I need to solve and they will be in
100% productive use of my lil creation. pat pat pat

Thanks again in advance. The help received from this newsgroup thus far has
been great, and quite timely.


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
 
J

John Vinson

I have a new database I'm creating for my fiance`s office to track the
patient charts for easier lookup.

The one field I'm having trouble with is Patient Record Number. I want the
ability to have them enter a base number an a decimal to differentiate
records belonging to the same patient. This is solely for billing
purposes. The record is extremely simplistic. I have defined the Patient
Number as Number, Long Integer, Auto Decimal (tried 1 or 2), General (tried
Fixed).

If a patient is treated within the same billing period (mind you, this is a
special billing requirement where a county agency actually pays the bill and
I'm merely trying to automate the process for the office manager rather than
her holding out patient files each month until the bill is sent and paid), I
want them to add a new patient record using the base patient # and add a
".1", ".2", etc. So, there could be 2-3 records for the same patient
L/FName:

DON'T try to store this decimal in the same field.

YOu have a one(patient) to many(treatment) relationship. The PatientID
should be stable - and should NOT change with treatments!

Instead, have a second field in the "many" side table which you
maintain with the 1, 2, 3..., either manually or with a bit of code I
could post for you. You can concatenate the two fields for display
purposes.


John W. Vinson[MVP]
Join the online Access Chats
Tuesday 11am EDT - Thursday 3:30pm EDT
http://community.compuserve.com/msdevapps
 
J

John Vinson

Thank you, John, I'd like to try your piece of code.

Sorry, should have posted it - it's a one-liner!

If you're using a Form - Subform arrangement, open the Subform in
design mode; view its Properties; find the Form's BeforeInsert
property and click the ... icon. Invoke the Code Builder. Access will
give you the Sub and End Sub lines. Assuming that the sequential
number field is named Seqno, use

Private Sub Form_BeforeInsert(Cancel as Integer)
Me!Seqno = NZ(DMax("[SeqNo]", "[yourtable]", "PatientID = " _
& Me.PatientID)) + 1
End Sub

John W. Vinson[MVP]
Join the online Access Chats
Tuesday 11am EDT - Thursday 3:30pm EDT
http://community.compuserve.com/msdevapps
 

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