R
Robert Miller
I have been banging my head on this for several days now,
I'm really hoping someone can help me.
What I need to do is create a routine that will do the
steps necessary to change the next value of an Autonumber.
I can do it manually, but I'm trying to create a solution
for my co-workers who do not understand the procedure. So
far I can change the Required and Type fields, but I can
not change the other fields required to carry out the
steps. Here is a sample of the code I have written thus
far:
Sub NewYearUpdate()
Dim db As DAO.Database
Dim tdf As DAO.TableDef
Set db = CurrentDb
Set tdf = db.TableDefs("tblVouchers")
tdf.Fields("VoucherNumber").Required = False
tdf.Fields("VoucherNumber").Type = dbLong
Set tdf = Nothing
End Sub
If someone has already done this, or it simply can not be
done please let me know. I need to finish this ASAP.
Thanks for any and all assistance!
I'm really hoping someone can help me.
What I need to do is create a routine that will do the
steps necessary to change the next value of an Autonumber.
I can do it manually, but I'm trying to create a solution
for my co-workers who do not understand the procedure. So
far I can change the Required and Type fields, but I can
not change the other fields required to carry out the
steps. Here is a sample of the code I have written thus
far:
Sub NewYearUpdate()
Dim db As DAO.Database
Dim tdf As DAO.TableDef
Set db = CurrentDb
Set tdf = db.TableDefs("tblVouchers")
tdf.Fields("VoucherNumber").Required = False
tdf.Fields("VoucherNumber").Type = dbLong
Set tdf = Nothing
End Sub
If someone has already done this, or it simply can not be
done please let me know. I need to finish this ASAP.
Thanks for any and all assistance!