ive given it a try but it wont work ive got
Option Compare Database
Private Sub hardwareid_BeforeUpdate(Cancel As Integer)
hardwareid = DMax("[hardwareid]", "tblhardware", 0) + 1
End Sub
in the form for the field of hardware id (which is where i want the number to appear
help please