C
CCHD via AccessMonster.com
Hi,
I need Help.
I’m trying to create an incident database. The table is called “Incident Logâ€.
I need the four fields of the table setup like this:
Incident # Patient # Patient # (2) Patient # (3) Patient # (4)
------------------------------------------------------------------------------
--------
0001-07 0001
0002-07
0003-07 0002 0003 0004 0005
0004-07 0006
0005-07 0007
0006-07
0007-07 0008 0009 0010 0011
0008-07 0012
0009-07 0013
…and so on
The “Incident #†needs to be generated automatically for every new record
entered and consists of a four digit number “0000†(up to 9999) then “-“ and
then two digits representing the current year “07†or “08†and so on. The
“Incident #†needs to reset to “0000†at the beginning of every year and the
“-07†should change to the current year automatically.
The “Patient #, (2), (3), (4)†needs consist of 4 digit number “0000†(up to
9999).
Since every incident logged does not have a patient, a patient number isn’t
always entered into the form each time a new incident is logged. (See example
above)
But the patient numbers should remain in sequential order. In the form the
next available patient number is displayed to the user and the user can
choose to enter the next Patient # or leave it blank depending on whether the
incident had a patient involved.
So far I have had no luck in creating this setup and I have little experience
with MS Access expression building and code.
Can all this be done?
Can anyone help?
Thank You
I need Help.
I’m trying to create an incident database. The table is called “Incident Logâ€.
I need the four fields of the table setup like this:
Incident # Patient # Patient # (2) Patient # (3) Patient # (4)
------------------------------------------------------------------------------
--------
0001-07 0001
0002-07
0003-07 0002 0003 0004 0005
0004-07 0006
0005-07 0007
0006-07
0007-07 0008 0009 0010 0011
0008-07 0012
0009-07 0013
…and so on
The “Incident #†needs to be generated automatically for every new record
entered and consists of a four digit number “0000†(up to 9999) then “-“ and
then two digits representing the current year “07†or “08†and so on. The
“Incident #†needs to reset to “0000†at the beginning of every year and the
“-07†should change to the current year automatically.
The “Patient #, (2), (3), (4)†needs consist of 4 digit number “0000†(up to
9999).
Since every incident logged does not have a patient, a patient number isn’t
always entered into the form each time a new incident is logged. (See example
above)
But the patient numbers should remain in sequential order. In the form the
next available patient number is displayed to the user and the user can
choose to enter the next Patient # or leave it blank depending on whether the
incident had a patient involved.
So far I have had no luck in creating this setup and I have little experience
with MS Access expression building and code.
Can all this be done?
Can anyone help?
Thank You