L
Lee Hunter
Will some one verify that the Alter Table statement is valid to change the
field type of the field "SeniorityNo" to be an Autonumber field. I have just
created the table using a copy structure and now wish to change the field
type from number to AutoNumber. If this is correct, will you please show the
proper syntac within DAO.
Thank you for your help
The error message from the Access query in SQL view is is "There is no field
named 'AutoNumber' in the 'NewEmpmaster'.
Dim CDb As Database
Set CDb = CurrentDb
DoCmd.TransferDatabase acExport, "Microsoft Access", CurrentDb().Name,
acTable, "EmpMaster", "NewEmpMaster", True
ALTER TABLE NewEmpMaster ALTER COLUMN SeniorityNo AUTONUM
field type of the field "SeniorityNo" to be an Autonumber field. I have just
created the table using a copy structure and now wish to change the field
type from number to AutoNumber. If this is correct, will you please show the
proper syntac within DAO.
Thank you for your help
The error message from the Access query in SQL view is is "There is no field
named 'AutoNumber' in the 'NewEmpmaster'.
Dim CDb As Database
Set CDb = CurrentDb
DoCmd.TransferDatabase acExport, "Microsoft Access", CurrentDb().Name,
acTable, "EmpMaster", "NewEmpMaster", True
ALTER TABLE NewEmpMaster ALTER COLUMN SeniorityNo AUTONUM