I'm a little stuck trying to write code to change a table's description. I found code like this very similar that works fine for renaming queries, but I am getting a 3420 error "Object invalid or no longer set". Can anyone help me out?
Dim prp As DAO.Property
Dim tdf As DAO.TableDef
Set tdf = CurrentDb.TableDefs("FlagGrouping")
Set prp = tdf.CreateProperty("Description", dbText, "My New Description")
tdf.Properties.Append prp
Thanks
Steve
Dim prp As DAO.Property
Dim tdf As DAO.TableDef
Set tdf = CurrentDb.TableDefs("FlagGrouping")
Set prp = tdf.CreateProperty("Description", dbText, "My New Description")
tdf.Properties.Append prp
Thanks
Steve