You can force Access to re-create these properties
by changing (deleting, then adding) the recordsource
for each form. I don't think you can do this in code.
(david)
----
The import/Export stuff seems to work slightly differently
in A2003, and has caused a series of related problems.
object.name is a syntax that refers to properties of object.
When you add a control to the control collection of a form,
Access adds a property to the form class, and connects
the property to the control.
When you add a global variable to a form, Access adds a
property to the form class, and connects the property to
the global variable.
When you bind a form to a recordsource in design mode,
Access adds properties to match the fields in the record
source.
If both controls and fields have the same name, the property
is bound to the control rather than to the field.
Since these properties are part of the form object, you
get 'autocompletion', 'intelesence' and automatic syntax
checking if you use these properties
When you export a form, these properties may not be exported:
they may be re-created when the form is imported.
Under some conditions, these properties may NOT be
exported, imported, or re-created.
-----
Jack said:
I have converted two Access 97 database to Access 2003. In both cases when
I open the converted database in Access 2003 my code stops every time I
reference a field on a form using the Me.FieldName syntax. For example if I
am setting a string variable called strFName to be equal to the value of a
field called txtFName on my form and I use the syntax