G
Guest
I would like to set the default value of an integer column to be:
(SELECT (MAX(THIS_COLUMN)+1) FROM THIS_TABLE)
tested as a querie as
SELECT (MAX(THIS_COLUMN)+1) FROM THIS_TABLE;
Attempting this results in 'object invalid or no longer set'.
Is it possible to find the MAX value (plus 1) of other rows and set the new
default value of this rows column to it?
No - Autonumber cannot be used as this column is user changeable - it is a
sort-order column and user must be able to change the value (via coded
functions to move rows up or down exist and work).
Thanks,
Todd
(SELECT (MAX(THIS_COLUMN)+1) FROM THIS_TABLE)
tested as a querie as
SELECT (MAX(THIS_COLUMN)+1) FROM THIS_TABLE;
Attempting this results in 'object invalid or no longer set'.
Is it possible to find the MAX value (plus 1) of other rows and set the new
default value of this rows column to it?
No - Autonumber cannot be used as this column is user changeable - it is a
sort-order column and user must be able to change the value (via coded
functions to move rows up or down exist and work).
Thanks,
Todd