matrixindicator
IS-IT--Management
Hoy,
You can create an autonumber field with vba. I wonder how I can set the field attributes to a Random Number. Manually you can set an autonumber field to random.
You can create an autonumber field with vba. I wonder how I can set the field attributes to a Random Number. Manually you can set an autonumber field to random.
Code:
Set fld = tdf.CreateField("RNDNR", dbLong, 50)
fld.Attributes = dbAutoIncrField 'this is an increment autonumber
tdf.Fields.Append fld