(Msg. 1) Posted: Thu Oct 09, 2008 2:27 pm
Post subject: numbering system Archived from groups: microsoft>public>access>tablesdbdesign (more info?)
I am starting a logsheet database. I want each entry to begin with letter,
then the year, then a sequential number. Such as case number. I tried the
input mask, defining it as text and the sequential part remains zero.I
entered "R-08-"0000
example R-08-0001, R-08-0002, etc.
Any ideas will be appreciated, thank you. MK
(Msg. 2) Posted: Thu Oct 09, 2008 4:43 pm
Post subject: Re: numbering system [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
There's a difference between what gets stored in relational database tables
and what you display for the users.
There's no need to store the "R" if every record will start with "R".
There's no need to store the "YY" if your record has a Date/Time field
that's being filled.
A "sequence number" is something you'll need to add a small procedure to
handle. Look up "custom autonumber" on-line and/or at mvps.org/access for
leads on this, and on how to get that sequence number to "reset" to 0001
when you get to 2009.
If you want to SEE (i.e., display) "R-08-0001", use a query to concatenate
the pieces together.
Regards
Jeff Boyce
Microsoft Office/Access MVP
"MK" <MK.TakeThisOut@discussions.microsoft.com> wrote in message
news:BB51EB3A-8D18-4C9D-AAFE-ED24E0DF8FDF@microsoft.com...
>I am starting a logsheet database. I want each entry to begin with letter,
> then the year, then a sequential number. Such as case number. I tried the
> input mask, defining it as text and the sequential part remains zero.I
> entered "R-08-"0000
>
> example R-08-0001, R-08-0002, etc.
> Any ideas will be appreciated, thank you. MK
(Msg. 3) Posted: Thu Oct 09, 2008 8:13 pm
Post subject: Re: numbering system [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
The design of every database begins with determining what needs to be
recorded and how the data will be used. It seems you first need to think
through why you even want to record this information. Please explain to us!
Steve
"MK" <MK.TakeThisOut@discussions.microsoft.com> wrote in message
news:BB51EB3A-8D18-4C9D-AAFE-ED24E0DF8FDF@microsoft.com...
>I am starting a logsheet database. I want each entry to begin with letter,
> then the year, then a sequential number. Such as case number. I tried the
> input mask, defining it as text and the sequential part remains zero.I
> entered "R-08-"0000
>
> example R-08-0001, R-08-0002, etc.
> Any ideas will be appreciated, thank you. MK
All times are: Eastern Time (US & Canada) (change)
Page 1 of 1
You can post new topics in this forum You can reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum