The folks who help here in these newsgroups are largely volunteers. Ifthey
have experience, ideas and time to help, they will.
If you have a tight deadline ("please assist as soon as possible"), you
might need to look into hiring some help.
If you want to have an identifying value like "MPL 001/08", "MPL 002/08",
... "MPL 001/09", ..., use a query to combine three separate 'facts'. Don't
store all three pieces ("MPL", "001", "08") plus the punctuation in a single
field in a table.
Instead, use one field to hold the code (?"MPL"?) ... and if that is a
constant value, you don't even need to store it!
Use another field to hold a sequence number (an integer, formatted with
something like Format([YourSeqNo],"000"). By the way, if you only have
three places ("001") in the formatting of that sequence number, you won'tbe
able to tell the difference between sequence number 003 and sequence number
19,003 -- how many records are you expecting?
Then, if you want to show the last two digits of the current year (e.g.,
"08"), one way to do this is to have a field in which you store a date (or
date/time) value, say, when the record was created, then use a query to get
only the last two digits.
Finally, to come up with your "number", you'd use a query with something
like:
MyNumber: "MPL" & " " & [MySequenceNumber] & "/" &
Right(Year([YourDateField]),2)
You'll need to create your own procedure to:
* test to see if the "08" still applies or needs to be "09"
* check for the maximum sequence number for the applicable 'year'
* add one
Good luck!
Regards
Jeff Boyce
Microsoft Office/Access MVP
I am creating a certain program and in that program i want to add a
field which will be creating numbers with text in sequence older "
Like MPL 001/08 to unlimited " And 08 be current year. This will
onlybe possible if that field is enebled, if the condition of enebling
this field still is false then the field returns the previous value
that is it maintances the previous record number.
please assist as soon as possible- Hide quoted text -
- Show quoted text -