473,597 Members | 2,113 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

"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 1705
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
LinkMasterField s/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.fsne t.co.uk> wrote in message
news:b3******** *************** ***@posting.goo gle.com...

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
2138
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 have been coding f.close()
1
841
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 uses HttpWebRequest to call xyz.asp on the target server. Both servers are under the same domain say domain1 and there is a trust between domain1 and domain2. The problem is the target server is returning 401 unauthorized access when calling xyz.asp...
1
7392
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 some freeware or samples? Thanks, Steve svinter@excite.com
1
2881
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 correctly. 3078" after I migrated "MS Access 2000" to "MS SQL Server 2000" and relinked all linked tables. The front-end interface of my application is MS Access 2000. The back-end is MS SQL Server 2000. After I migrated the database and
2
3736
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 lines that can be moved with the mouse). Can this (or something similar) be implemented in order for the user to graphically choose which part of the string will be, for example, be displayed in a MessageBox? So for example, my control would...
5
3078
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 ideas?
1
2561
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 files and it is not prompting me for a password. I'm the only programmer / user on my personal PC and have no idea how my code got locked. I've installed no programs nor altered any settings.
1
1319
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 defined. I guess VB 6 does not have Access.application built in as a user type. I have no idea how to (or where to) correctly define this user type. Any ideas are appreciated! Michael.
1
2754
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 onBlur="self.close()" onClick="self.close()"to do the trick, but some windows are longer than 1 page that a user need to scroll the window to see it. With the script above, it closes even when clicked. I took onClick="self.close()" out but it still does the same...
0
7886
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8272
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8258
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6688
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5431
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
3927
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2404
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1494
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1238
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.