Could be a bunch of reasons, but if this is Access 2002 or 2003, and the
form has a subform, the crash could be due to this bug.
If you have a subform in these versions, and the field named in the
LinkChildFields property of the subform is not represented by a control on
the subform, the references is to an object of type AccessField. This type
seems to have a bug that crashes Access. You can work around the bug by
adding a text box for this field to the subform, so that the LinkChildFields
refers to an object of type TextBox instead.
The process is:
1. Uncheck the boxes under:
Tools | Options | General | Name AutoCorrect
Explanation of why:
http://allenbrowne.com/bug-03.html
2. Compact the database to get rid of this junk:
Tools | Database Utilities | Compact
3. Add a text box to the subform, bound to the foreign key field. (Set its
visible property to No if desired.)
4. In the main form, delete the LinkMasterFields and LinkChildFields
properties of the subform control. Save. Close the form.
5. Open the form again, and set the LinkMasterFields and LinkChildFields
properties again, so Access makes the association with the text box in the
subform.
If that is not the issue you are experiencing, make sure you have the recent
patch for your version of Access and also for JET 4. Both are available
from:
http://support.microsoft.com/gp/sp
If that still does not solve the problem, post back indicating the version
of Access you are using.
--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Reply to group, rather than allenbrowne at mvps dot org.
in message
news:
[email protected]...