F
FBxiii
Hi.
I have a system where a file is imported to a new table and is given an
AutoNumber field so each record has a sequential reference number.
At the end of the import process, I need to 'juggle' the reference number
between records so they are sorted differently on a report.
I am trying to change the field type to an Integer but get an "invalid
operation" error.
Here is my code, am I doing anything wrong? Can this be done?
Dim tdef As TableDef
Set db = OpenDatabase("*DB_Path*")
Set tdef = db.TableDefs("*TableName*")
tdef.Fields("Record_ID").Type = dbInteger
Any ideas?
Cheers,
Steve.
I have a system where a file is imported to a new table and is given an
AutoNumber field so each record has a sequential reference number.
At the end of the import process, I need to 'juggle' the reference number
between records so they are sorted differently on a report.
I am trying to change the field type to an Integer but get an "invalid
operation" error.
Here is my code, am I doing anything wrong? Can this be done?
Dim tdef As TableDef
Set db = OpenDatabase("*DB_Path*")
Set tdef = db.TableDefs("*TableName*")
tdef.Fields("Record_ID").Type = dbInteger
Any ideas?
Cheers,
Steve.