Here is an example that i used for an invoice number. Make sure your table has the field invoice number in it with a value an it will do the rest.
I hope this helps
Me!INVOICE_NUMBER.DefaultValue = Nz(DMax("[INVOICE NUMBER]", "TBLINVOIVENUMBER"), 0) + 1
Darryl