Re: Number sequence



looks like a custom function: GenNextSequence(). assuming that this is
where the number assignment is actually coming from, we'd need to see the
function procedure in order to make recommendations.

open your database, and open any module on the Modules tab. from the menu
bar, click Edit | Find. in the Find dialog, type "Function GenNextSequence("
only without the double quotes. in the Search section below, choose Current
Project, then click Find Next.

you should find the function procedure, which starts with the line you typed
in (Function may be preceded by Public), and ends with "End Function" -
again, sans quotes. copy the entire procedure from beginning to end, and
paste it into a post, so we can see it.

hth


"Mark G" <MarkG@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:585481AD-82D6-44E9-85B4-BE8570063882@xxxxxxxxxxxxxxxx
We have a field in one of our forms in our database that automatically
generates a run number for fire calls in sequence. The format that we use
is
07-999. Everything was working fine until we hit what should have been
07-1000. Now when it is supposed to assign the next number in the
sequence
it displays 07.0000. Any help would be greatly apreciated. I just dabble
with access and have no formal training which is more than the rest of the
department, and since I do I kind of inherited this database we are using.
This code is in a tab labeled "calculations" on a subform. I think this
is
what is telling the field what to do.
=GenNextSequence("daylog3","RUN#","05-0001"). I would like it to
transition
from 07-999 to 07-1000 just as it did for the first 999 numbers.

Thanks
Mark


.



Relevant Pages

  • Re: Number sequence
    ... That was the only gennextsequence I could find. ... the next in that sequence. ... function procedure in order to make recommendations. ... again, sans quotes. ...
    (microsoft.public.access.forms)
  • Re: Number sequence
    ... GenNextSequence = AdvanceSequence) ... you should find the function procedure, which starts with the line you typed ... again, sans quotes. ... generates a run number for fire calls in sequence. ...
    (microsoft.public.access.forms)
  • Re: Number sequence
    ... the next in that sequence. ... function procedure in order to make recommendations. ... and open any module on the Modules tab. ... again, sans quotes. ...
    (microsoft.public.access.forms)
  • Re: Number sequence
    ... function procedure in order to make recommendations. ... and open any module on the Modules tab. ... again, sans quotes. ... generates a run number for fire calls in sequence. ...
    (microsoft.public.access.forms)
  • Re: Number sequence
    ... automatically change the year on 01/01/08. ... entering 08-1 and it would continue the sequence from there. ... function procedure in order to make recommendations. ... again, sans quotes. ...
    (microsoft.public.access.forms)

Loading