G
Guest
Hello,
We are experiencing an intermittent problem that is affecting some forms in
an Access XP database. At some sites the problem occurs almost everytime and
at others it is rare. The database is split into a frontend and backend.
What happens is that when viewing a form, if a new record is entered on the
subform then the user will get a error 3197 when Access tries to write the
record to the database. They then ok the error message and #Error then
appears in one of the bound controls on the subform. This will then happen
for every bound control on the subform until they all have #Error in them.
The user can then enter subsequent records without any problems. If the user
then presses F9 to refresh the subform, the record with the #Error's in is
refreshed and the data that the user entered appears.
This only occurs for the first record to be entered. If a subform has
calculated controls, we can tell that the problem is going to occur because
#Error will appear in the calculated controls before any data is entered into
the new record. Pressing F9 will clear the problem.
In one particular subform that has this problem, as a test, we have set
HasModule=No and bound the form direct to the table instead of using a query
but the problem still occurs (The table does not include any memo fields).
On another subform, it's parent form is unbound and the subform is not
linked to it on any fields but the problem occurs.
Has anyone got any ideas what it causing this or how it can be avoided?
Thanks.
We are experiencing an intermittent problem that is affecting some forms in
an Access XP database. At some sites the problem occurs almost everytime and
at others it is rare. The database is split into a frontend and backend.
What happens is that when viewing a form, if a new record is entered on the
subform then the user will get a error 3197 when Access tries to write the
record to the database. They then ok the error message and #Error then
appears in one of the bound controls on the subform. This will then happen
for every bound control on the subform until they all have #Error in them.
The user can then enter subsequent records without any problems. If the user
then presses F9 to refresh the subform, the record with the #Error's in is
refreshed and the data that the user entered appears.
This only occurs for the first record to be entered. If a subform has
calculated controls, we can tell that the problem is going to occur because
#Error will appear in the calculated controls before any data is entered into
the new record. Pressing F9 will clear the problem.
In one particular subform that has this problem, as a test, we have set
HasModule=No and bound the form direct to the table instead of using a query
but the problem still occurs (The table does not include any memo fields).
On another subform, it's parent form is unbound and the subform is not
linked to it on any fields but the problem occurs.
Has anyone got any ideas what it causing this or how it can be avoided?
Thanks.