Tip of the Month (October 2010) Dealing with the "The structure of the form's underlying table has changed" message On occasion, you will see the error message: "The structure of the form's underlying table has changed. OK to modify the form (may cause controls to be deleted from your form)?". Here's why this message comes up and what you can do about it. Visual CE saves the table definitions (table name, number of columns, column names, column types) in two different places:
When you open a .VCE in the form designer on the desktop, we see two definitions of the table: the one in the WCEODBC.INI file and the one that was saved in the .VCE file. We assume the definition in the WCEODBC.INI file is the "best" definition. The definition stored in the .VCE file is "second best". If the definitions are inconsistent, we have to reconcile them (which is when you see the "The structure of the underlying table has changed" error message). How did these table definitions get inconsistent? Perhaps you did this:
Another way the table definitions can become inconsistent is if you do the following:
Because of all this, sometimes you get into the situation where you know that the definition of the table in the .VCE file is the correct one and you want to somehow use that definition to overwrite the one in the WCEODBC.INI file. As it turns out, SYWARE provides a tool to do exactly that. In the Free Downloads section of our website (www.syware.com) there are some Visual CE Add-On tools. You can use one of these tools (the REBUILD tool) to replace the definition of a table in the WCEODBC.INI file with the definition of the table in the .VCE file. Previous Tips of the Month |