J
John
I am currently testing an older Access project for compatibility with Access
2007, SP1 prior to a roll-out.
I'm experiencing a problem with a complex form that fails to open and
crashes Access 2007. It runs fine on Access 2003. The database is SQL Server
2000. Using references to ADO 2.5, 2.7 or 2.8 makes no difference.
The form has 6 tabbed pages. On one of the tabbed pages there is a sub-form.
That sub-form has 2 tabbed pages and one of those tabbed pages has 5
sub-forms. The form has about 23 sub-forms in all.
A routine in a loop binds an ADO Recordset to each of the sub-forms using
the expression:
Set frm.Form.Recordset = rs
The problem begins when I get to the 5 sub-forms on the nested tabbed page.
I know the recordsets are created. For the first two, the expression appears
to execute but the value of frm.Form.Recordset is Nothing and there is no
crash. On the third, Access 2007 crashes (outside the debugger) or hangs
(inside the debugger). Ending task on the latter occasionally reboots the
machine (XP Pro, SP2).
This project was created (upsizing an earlier .MDB file) under Office XP and
migrated to Office 2003 with no problem, although I've had an issue recently
with a couple of controls (textbox and combobox) suddenly getting "lost" on
the form (i.e. they couldn't be located by Access even though they were
recognized in the debugger). In this case, I recreated these controls from
scratch and the project worked fine afterwards.
Recreating the crashing sub-form from scratch has not solved the problem.
Nor has re-creating the project from scratch and importing all the objects.
I'm open to any suggestions.
Thanks in advance,
John
2007, SP1 prior to a roll-out.
I'm experiencing a problem with a complex form that fails to open and
crashes Access 2007. It runs fine on Access 2003. The database is SQL Server
2000. Using references to ADO 2.5, 2.7 or 2.8 makes no difference.
The form has 6 tabbed pages. On one of the tabbed pages there is a sub-form.
That sub-form has 2 tabbed pages and one of those tabbed pages has 5
sub-forms. The form has about 23 sub-forms in all.
A routine in a loop binds an ADO Recordset to each of the sub-forms using
the expression:
Set frm.Form.Recordset = rs
The problem begins when I get to the 5 sub-forms on the nested tabbed page.
I know the recordsets are created. For the first two, the expression appears
to execute but the value of frm.Form.Recordset is Nothing and there is no
crash. On the third, Access 2007 crashes (outside the debugger) or hangs
(inside the debugger). Ending task on the latter occasionally reboots the
machine (XP Pro, SP2).
This project was created (upsizing an earlier .MDB file) under Office XP and
migrated to Office 2003 with no problem, although I've had an issue recently
with a couple of controls (textbox and combobox) suddenly getting "lost" on
the form (i.e. they couldn't be located by Access even though they were
recognized in the debugger). In this case, I recreated these controls from
scratch and the project worked fine afterwards.
Recreating the crashing sub-form from scratch has not solved the problem.
Nor has re-creating the project from scratch and importing all the objects.
I'm open to any suggestions.
Thanks in advance,
John