=?Utf-8?B?RGVubmlzR3VpbGJhdWx0?=
Does anyone know how to get and set the caption property of a field in
a table, using vba?
Look up help for the Properties collection of the DAO.Field object.
IIRC, it's one of those custom properties that doesn't exist until it's
set, so you have to test for its existence before trying to read it or
set it.
In any case, there is no logical reason for doing this programatically.
If you or your users have access to the Access GUI, then you can set it
there using the Table Design window, with a great deal less fuss.
If you or your users do not have access to the Access GUI, then there is
no plausible use for the Caption property, because its only job in life
if to provide a default caption for the label associated with controls
you drop onto a new form. No GUI means no forms or report creation, so
no use for the Caption property.
All the best
Tim F