A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Database Design
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

numbering system



 
 
Thread Tools Display Modes
  #1  
Old October 9th, 2008, 10:27 PM posted to microsoft.public.access.tablesdbdesign
MK
external usenet poster
 
Posts: 87
Default numbering system

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
  #2  
Old October 10th, 2008, 12:43 AM posted to microsoft.public.access.tablesdbdesign
Jeff Boyce
external usenet poster
 
Posts: 8,621
Default numbering system

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" wrote in message
...
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



  #3  
Old October 10th, 2008, 01:13 AM posted to microsoft.public.access.tablesdbdesign
Steve[_57_]
external usenet poster
 
Posts: 598
Default numbering system

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" wrote in message
...
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



 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 07:06 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.