I see what you mean re the use of the autonumber ID!
I'm not clear how to use renewal_invoice_#?
Just what I say. There is NO need to store 16 identical text characters
renewal_invoice_ in every InvoiceID field in every record in your table. Use a
Long Integer number and use a Format property to *display* the text (without
storing it); the Format property
"renewal_invoice_#"
will do just that - display the text followed by a number.
Incidentally apart from the autonumber ID value the only other unique
field value is the post code - this would look rather odd as an
invoice number and would not give a series of consecutive values - any
suggestions?
Use a Long Integer number field instead of an Autonumber; and use VBA code on
the Form which (I hope!!) you're using to enter the invoices. Depending on how
many people are entering data concurrently, this can be very simple or fairly
complex. The simple end would work for one user (or for very low probability
of two users entering new invoices simultaneously); put code in the Form's
BeforeInsert event like
Private Sub Form_BeforeInsert(Cancel as Integer)
Me!InvoiceID = DMax("[InvoiceID]", "[Invoices]") + 1
End Sub
John W. Vinson [MVP]