|
-
Jan 10th, 2000, 08:54 PM
#1
Thread Starter
New Member
How do I create an autonumber command for Access 97 that creates a sequential number following the following format:
p00/nn. where 00 is the year created?
I'm using the RND() command at the moment in the following construct:
="p" YEAR(NOW())"/"rnd(1-99)
Which returns a value of P2000/nn.
So I would like to condense the YEAR(NOW()) to return only the last two digits of the year.
Also the rnd statement returns a random number between 1 and 99, which is fine for my purposes, but it would be better if it could be made to return the next unused number in the sequence.
Any ideas?
Thanks
------------------
Ron Heywood
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|