S
Sondra
I put this in as the Control Source of the textbox on a
form and on a report...
=Format(Date(),"yy") & "CC-" & Format([AN_Field],"000")
I'm a very novice user so I don't write a great deal of
code. I realize that the format will make all records
change to 04 for 2004; however I will have to create a
blank empty database for 2004 as I need to use the 2003
records.
It keeps locking access up and makes me restart. Does
anyone have any suggestions???
**********
I have created a table that uses an autonumber for the
primary key which will be used in about 90% of my forms,
queries and reports. The format of the autonumber is
000. However I need to create the reports to show a
different format. I want it to look like 03CC-001, 03CC-
002, 03CC-003, etc.
I have entered the format at "03CC-"000; however I will
have to go in and modify everything for next year as "04CC-
"000.
Is there a format I can enter that will automatically put
the year in for me. I have tried entering yy"CC-"000 but
it comes up as 1900CC-001, 1900CC-002, etc. I then tried
y"CC-"000 and still couldn't make the current year work.
Does anyone have any suggestions? This is a big concern
as I create several databases for our region that require
date but also consecutive numbers.
Thanks.
form and on a report...
=Format(Date(),"yy") & "CC-" & Format([AN_Field],"000")
I'm a very novice user so I don't write a great deal of
code. I realize that the format will make all records
change to 04 for 2004; however I will have to create a
blank empty database for 2004 as I need to use the 2003
records.
It keeps locking access up and makes me restart. Does
anyone have any suggestions???
**********
I have created a table that uses an autonumber for the
primary key which will be used in about 90% of my forms,
queries and reports. The format of the autonumber is
000. However I need to create the reports to show a
different format. I want it to look like 03CC-001, 03CC-
002, 03CC-003, etc.
I have entered the format at "03CC-"000; however I will
have to go in and modify everything for next year as "04CC-
"000.
Is there a format I can enter that will automatically put
the year in for me. I have tried entering yy"CC-"000 but
it comes up as 1900CC-001, 1900CC-002, etc. I then tried
y"CC-"000 and still couldn't make the current year work.
Does anyone have any suggestions? This is a big concern
as I create several databases for our region that require
date but also consecutive numbers.
Thanks.