rye,
Cut and paste the code you used in your post.
Where did you put the expression?
I tested my code (using my object names... you use your own)
Rename your H# field to something like InvoiceNo.... The "#" is a
special character used in date operations, and should be avoided in object
naming convention.
In form design mode, select View/Properties. Highlight the field
(InvoiceNo) you want to increment.
In the properties dialog box, select the ALL tab, find the Default Value
property, and in the text box to the right enter this...
=NZ(DMax("[CustID]","tblCustomers"),0) + 1
(Use the name of your field and your table name)
Whenever a new record is created, this will generate the next higher
number in the table.

Signature
hth
Al Campagna
Microsoft Access MVP
http://home.comcast.net/~cccsolutions/index.html
"Find a job that you love... and you'll never work a day in your life."
> Hi Al,
>
[quoted text clipped - 32 lines]
>> >
>> > Ryan