B
Barry
I have a string in which i would like to increment portions of the string
automatically. The String is "LC06-0001-01"
What i need to do with this is first select the current year "LC06". i then
need to increment the second part of the string from 0001 to 9999 per year so
that if at the end of the year the string reads "LC06-5648" then in the new
year the first record will read "LC07-0001".
The last part of the string is got from a subform which can have values of
01 - 99 depending on the number of records entered. I need this to check the
max record and add 1 to the string.
I know this is probably childs play for some people but i am new to this and
i am having awfull trouble trying to figure it out.
Can someone please help me or point me in the right direction? Thanks in
advance
automatically. The String is "LC06-0001-01"
What i need to do with this is first select the current year "LC06". i then
need to increment the second part of the string from 0001 to 9999 per year so
that if at the end of the year the string reads "LC06-5648" then in the new
year the first record will read "LC07-0001".
The last part of the string is got from a subform which can have values of
01 - 99 depending on the number of records entered. I need this to check the
max record and add 1 to the string.
I know this is probably childs play for some people but i am new to this and
i am having awfull trouble trying to figure it out.
Can someone please help me or point me in the right direction? Thanks in
advance