Change autonumber to long

  • Thread starter Thread starter RonB
  • Start date Start date
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?
 
The issue is not that its Long its that its an autonumber

I just want to get rid of the autonumber attribute and leave
it as a long type only

Sri for confusion
 
Thanks all replies - will check it out last reply page

Does seem to me TD that this is not allowed by Access
I can change a tabledef's name but not its Type nor Attributes?
using my current VBA
 

Users who are viewing this thread

Back
Top Bottom