Create and store unique record number.
- From: "Erik S. via AccessMonster.com" <forum@xxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Sun, 24 Apr 2005 22:12:33 GMT
I've been searching through the threads trying to find a post that
matches my question but I can't seem to locate one. I need to have the
form automatically generate a unique number in a specific format, and I
need that number to be stored in the database so it would be searchable.
What I'm trying to do is generate a number that is based upon the year,
month, then a 3 digit number on the end such as 05.04.001 for 2005, April,
001. I also need this number to change based upon the month and year. I
have field for the record number to be displayed at the top of the form and
I'd like for this number to show in that field.
In my data table I have 2 fields that I can use to generate this number.
RecordID field and RecordDate field. I just don't know how to get it to
generate and display the number. I tried using some previous post
suggestions to figure this out, but I either get compiler errors or it
simply doesn't work. Please, if anyone can help I would greatly appreciate
it.
Thanks
--
Message posted via http://www.accessmonster.com
.
- Follow-Ups:
- RE: Create and store unique record number.
- From: BruceM
- Re: Create and store unique record number.
- From: Mike Painter
- Re: Create and store unique record number.
- From: Erik S. via AccessMonster.com
- RE: Create and store unique record number.
- Prev by Date: Re: Design Suggestions??
- Next by Date: Re: Create and store unique record number.
- Previous by thread: Convert Form to 2 Tab Control Form?
- Next by thread: Re: Create and store unique record number.
- Index(es):
Relevant Pages
|
Loading