Is it possible to determine if the control source for a field on a form is an autonumber (or any non updatable field type)?
Basically I am looping through all the controls on a form and want to avoid changing fields that are non updatable - usually the primary key fields which are auto number.
I could look up the control cource for a control to determine the field name. However, the underlying table may be difficult to find in the forms recordsource if it is more than a single table. If the record source is made up of a series of tables it would be impossible to determine the actual table the field cam from.
I suppose there are other sneaker ways around this. I could ensure all read only fileds are locked and check for locked = true to avoid updates. Any ideas would be apreciated.
Thanks,
Mark Davies
Warwickshire County Council
Basically I am looping through all the controls on a form and want to avoid changing fields that are non updatable - usually the primary key fields which are auto number.
I could look up the control cource for a control to determine the field name. However, the underlying table may be difficult to find in the forms recordsource if it is more than a single table. If the record source is made up of a series of tables it would be impossible to determine the actual table the field cam from.
I suppose there are other sneaker ways around this. I could ensure all read only fileds are locked and check for locked = true to avoid updates. Any ideas would be apreciated.
Thanks,
Mark Davies
Warwickshire County Council