Hi,
I have a text field on my form which I have limited to no duplicates.
I have tried to use an Auto Number format but I would encount problems at the end of the year due to the format of the number
i.e. 2009 = Z,09.00001, Z,09.00002 etc
2010 = Z,10.00001, Z,10.00002 etc
What I am trying to do is the following;
When the users types in a number out of sequence with the previous one a message box pops up advising that the Z number is not in sequence do you wish to proceed? the user would then click no for 2009 but when 2010 comes the user would select yes in the above message box which would change the format to Z,10.''''' etc and the sequence would start again from z,10 onwards.
This would carry on for the following years.
I have been told that it is possible to this using VBA but I am unsure how.
I would appreciate any help on this matter.
Regards
Spike

I have a text field on my form which I have limited to no duplicates.
I have tried to use an Auto Number format but I would encount problems at the end of the year due to the format of the number
i.e. 2009 = Z,09.00001, Z,09.00002 etc
2010 = Z,10.00001, Z,10.00002 etc
What I am trying to do is the following;
When the users types in a number out of sequence with the previous one a message box pops up advising that the Z number is not in sequence do you wish to proceed? the user would then click no for 2009 but when 2010 comes the user would select yes in the above message box which would change the format to Z,10.''''' etc and the sequence would start again from z,10 onwards.
This would carry on for the following years.
I have been told that it is possible to this using VBA but I am unsure how.
I would appreciate any help on this matter.
Regards
Spike
