R
RonB
Guest
Anyone know how to change an 'autonumber' to a Long type using DAO, VBA
Currently I've got VBA to identify an 'autonumber' in a table by using TableDef:=
(where myf is a field in the table)
If myf.Attributes = 17 Then 'is autonumber
So thus identifies the field as autonumber
If I then add - myf.Attributes = 33
(I understand that 33 = Long)
I get error 3219 "Invalid operation" ---any suggestions?
Currently I've got VBA to identify an 'autonumber' in a table by using TableDef:=
(where myf is a field in the table)
If myf.Attributes = 17 Then 'is autonumber
So thus identifies the field as autonumber
If I then add - myf.Attributes = 33
(I understand that 33 = Long)
I get error 3219 "Invalid operation" ---any suggestions?