Sorry
(Don't shoot the messenger)
One possible way aound this would be tio give each user their own unique Alpha Invoice Prefix (the invoice ref field would have to be text though)
So if the prefixes were all 2 characters, and mine, for example was "MG", then to generate the next invoice number you would need:
=UserPrefix & (DMax("Val(Mid([YourInvoiceField],3))", "YourTableName", "[YourInvoiceField] like '" & [UserPrefix] & "*'")+1)
This assumes that you have previously stored my user prefix in a string variable called UserPrefix.
So it gets the highest numeric part of any invoice number with my prefix, adds 1 to it and prefixes the resulting number with MG again.
This would mean though that you would end up with invoice refs like:
MG101 and
RH101
where, although the prefix is different, the numeric part is the same; this may or may not be a problem in your setup.
I suppose you're now beginning to wonder if missing autonumbers are such a big problem after all...
HTH
Mike
[This message has been edited by Mike Gurman (edited 02-13-2001).]