473,385 Members | 1,474 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

"Access needs to close" when refreshing a form in Acc2002 but not in 2000

J
Hi,
Ive got 3 forms, (a subform within a subform within a form) and when I
refresh the outermost form, Access closes and offers to send an error
report.

The forms worked fine a few weeks ago, but now they cause this error
in Access 2002 (Access 2000 is fine)

Each of the sub forms use values from their parent forms to produce
results.

There isn't a problem loading the forms in the first place; the
problem only occurs when you refresh the outermost form(using either
the menubar or F9).

Each if the forms work fine independantly, and it is only when all 3
forms are present that the problem occurs.

Someone has suggested to me that it may be due to a number of windows
updates that have been done in the last few week.

I have tried installing Office XP SP3, but this has no effect. I can
supply more details about the forms in question if necessary, but I
think that this may be more to do with a difference between 2000/2002
than with the forms themselves.

I have tried compacting and repairing both "sides" of the database:
the data tables are stored on the server and accessed via the
"frontend" database on individual user's machines.

Can anyone think of what may be causing this problem?

TIA
Nov 12 '05 #1
1 1681
J, here are a couple of things to try:

1. Turn off the Name AutoCorrect check boxes under:
Tools | Options | General
Then compact the database:
Tools | Database Utilties | Compact.
For an explanation of why, see:
http://allenbrowne.com/bug-03.html

2. In each subform, add a (hidden) text box for the foreign key field(s).
This sounds really daft, but try it and see if it makes a difference.
Although Access should be able to cope with referring to the member of the
Fields collection in the subform, if you actually create a control so it can
use the Controls collection instead, it can prevent Access 2002 and 2003
from crashing.

3. Check the names of your controls. Access typically uses the same Name for
a control as its ControlSource, and that works okay. But if you alter the
ControlSource *without* altering the Name, you can confuse Access and
trigger bugs that are difficult to trace.

These issues are especially important for the fields names in the
LinkMasterFields/LinkChildFields properties of the subform control. As well,
make sure that none of these fields has a name that matches anything else
such as Name (forms have a Name property) or Section (forms have sections).

--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"J" <a@lawhead.fsnet.co.uk> wrote in message
news:b3**************************@posting.google.c om...

Ive got 3 forms, (a subform within a subform within a form) and when I
refresh the outermost form, Access closes and offers to send an error
report.

The forms worked fine a few weeks ago, but now they cause this error
in Access 2002 (Access 2000 is fine)

Each of the sub forms use values from their parent forms to produce
results.

There isn't a problem loading the forms in the first place; the
problem only occurs when you refresh the outermost form(using either
the menubar or F9).

Each if the forms work fine independantly, and it is only when all 3
forms are present that the problem occurs.

Someone has suggested to me that it may be due to a number of windows
updates that have been done in the last few week.

I have tried installing Office XP SP3, but this has no effect. I can
supply more details about the forms in question if necessary, but I
think that this may be more to do with a difference between 2000/2002
than with the forms themselves.

I have tried compacting and repairing both "sides" of the database:
the data tables are stored on the server and accessed via the
"frontend" database on individual user's machines.

Can anyone think of what may be causing this problem?

TIA

Nov 12 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

12
by: Stephen Ferg | last post by:
I've just spent several very frustrating hours tracking down a bug in one of my programs. The problem was that I was writing text to a file, and when I was done I coded f.close when I should...
1
by: ag | last post by:
Hi guys.. need your help. We have abc.asp page on the source server which calls a .net component on that server. The component is in MTS running under say "domain2\id1" identity. The component...
1
by: Steve V | last post by:
I'm looking for a sample access database (preferably Access 2000 or early) that is more sophisticated than the template/sample provided with Access. It's for personal use. Can anyone point me to...
1
by: bonnie.tangyn | last post by:
Hello all I get Too few parameters expected 2 error and "The MS Jet Database engine cannot find the input table or query "myTempTablename". Make sure it exists and that its name is spelled...
2
by: VMI | last post by:
In Access, when a user's going to import a fixed-width format ascii file, a window in the "Import Text Wizard" lets the user "mark" where in a string one field will begin and end (with the vertical...
5
by: lindanr | last post by:
In ASP.NET 2005 I have an onblur="window.close()" javascript event in the <body> tag. When I click on the window's scrollbar, the window closes. The same code works fine in ASP.NET 2003. Any...
1
by: Ed | last post by:
I have MS Access 2000 (no other versions involved) and can't open my Modules. Clicking on a Module gives me a "Project Locked", "Project is unviewable" message. I've never password protected my...
1
by: coyotemrh | last post by:
Using VB6 I am trying to call an access form. One site gave the code, but the first line was: Dim oAccess as Access.application When I try to run vb. it tells me that the user type has not been...
1
by: liu | last post by:
I have some thumbnails and once clicked it creates a new window. I don't want extra windows everywhere so I'd like it to auto-close when it's in the background. I've found <body...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.