item no automaticly work out what number

prostheticHead

Registered User.
Local time
Tomorrow, 00:20
Joined
Dec 14, 2004
Messages
42
I need my product list to automatically increment the item no collum offcourse normally I could do this with auto number or something but that just increments over the Entire table not for just the few items related to the insurance job. I have attached a screen shot to explain what I mean a bit more

Anyone have any ideas of how I could make this work.

As always if need be i can send the database

Thanks!

prostheticHead
 

Attachments

  • AutoNumber.gif
    AutoNumber.gif
    14.2 KB · Views: 171
You could use something like this (not tested):
Code:
Dim RSet As Recordset
Set RSet = Me.RecordsetClone
RSet.MoveLast
txtNo=No+1
 
thanks heaps dude that worked perfectly!!
 

Users who are viewing this thread

Back
Top Bottom