Phil wrote:
I made a change to a backend db by adding a table and relationships.
How can I integrate that into another backend which has the correct and
valid data. This change I can do manually but I would like to know if I
can check to see if there is any other changes to the design in my
development copy with the invalid data but up-to-date structure.
See TableDef, TableDefs, Fields, Field, CreateTableDef and all code
examples associated with them in help. Look too at CreateRelation and
Relation Object.
You should also be familiar with On Error..Resume Next, etc.
You should know how to do for/next loops...or Do Whiles.
See OpenDatabase and Connect for opening up other databases.
The above methods/properties should get you pointed in the right direction.
In your case, you would check to see if a tabledef exists in a the other
database. If it doesn't, build it.
If it does exist, you would then open up the development tabledef and
scan all fields in it. You would compare each field and see if it
exists in the other database tabledef. If not, add the field.