R
Ross
I have written some code that allows me to append a name to a caption
property on a field in a table.
'Grouping _1
<><><>/<><><>/<><><>/<><><>/<><><>/<><><>/<><><>/<><><>
myString = grp1_Name
Set db = CurrentDb
Set TDF = db.TableDefs!tblCompare
Set FLD = TDF.Fields("Grouping_1")
Set PRP = FLD.CreateProperty("Caption", dbText, myString)
FLD.Properties.Append PRP
This code works only when the caption for the Grouping_1 field is empty. I
cannot edit the caption if a caption already exists.
‘<><><>/<><><>/<><><>/<><><>/<><><>/<><><>/<><><>/<><><>/
How do I remove the caption from the field at a later time (when I close a
form)?
I have tried, null, empty, “â€, “ “ without success.
Thank you
Ross
property on a field in a table.
'Grouping _1
<><><>/<><><>/<><><>/<><><>/<><><>/<><><>/<><><>/<><><>
myString = grp1_Name
Set db = CurrentDb
Set TDF = db.TableDefs!tblCompare
Set FLD = TDF.Fields("Grouping_1")
Set PRP = FLD.CreateProperty("Caption", dbText, myString)
FLD.Properties.Append PRP
This code works only when the caption for the Grouping_1 field is empty. I
cannot edit the caption if a caption already exists.
‘<><><>/<><><>/<><><>/<><><>/<><><>/<><><>/<><><>/<><><>/
How do I remove the caption from the field at a later time (when I close a
form)?
I have tried, null, empty, “â€, “ “ without success.
Thank you
Ross