Jeff,
Nothing stupid about your question. I put it as an independent
subroutine because I did not know when and how you would want it to
happen. But I guess the simplest approach would be to assign the code
directly to a database Event. For example, you could have a command
button on the form where you add new Lawfirms, and then after you have
added or deleted a law firm, you could click the button and the SeqNo
will refresh. In this case, you could go in the design view of the
form, to the On Click property of the command button, click the [...] at
the right of the property box, and enter the code I gave in there,
except the line Private Sub RefreshSeq() will be replaced by Private Sub
YourButton_Click(). Or else maybe on a command button on a form that
you use to launch your reports?
By the way, I have also realised that I have made an assumption that the
SeqNo will be a Number data type, which I think is definitely the
easiest to work with. If you want it to come out on your report as you
indicated, i.e. like (L-4) then you can use the Format property of the
textbox on the report, set to "(L-"0)
--
Steve Schapel, Microsoft Access MVP
Not to be stupid, but I've never used VB in Access and am unsure where I set
the code suggested and then to run the process.
Thanks
Jeff...