473,394 Members | 1,755 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,394 software developers and data experts.

URGENT : need help with endless loop with requery code

Hi all,

I'm searching fulltime for days now, and I don't find the solution, so I'm
thinking this is more a bug :(

If i use following code in form&subforms:

Me.Parent![PeopleBase].Requery

Then sometimes (after 5, 6 or 20 times) i get an endless loop with 100% cpu
utilization (in the status bar you can see the note 'Calculating' !)

Some people put this code into the OnCurrent event and other say that this
is the cause. I tested the code everywhere (onclick, on change, etc...) and
still the same err occurs. Did err handling to fetch this loop but nothing.
I'm 100% sure that this line of code is giving me the loop problems. (Some
people reported that there was no problem in access97 and that it all
started with version 2000!)

If i search the net for this then you will find some 1000 msg reporting this
problem. I run through the most of them to find some solution, but nothing
did help yet.

Please, someone smarter then me, please help me with this, I can see it
anymore!

Thnx world.

ps: For your info, I'm using Access2000 eng on a Win2k eng sp4 platform (all
patches installed)

Nov 12 '05 #1
3 2840
Hi all again,

ITS A BUG!!!!

http://support.microsoft.com/default...b;en-us;288374

Does someone has got good resolution for this ?

Thnx in advance


"John F." <jo**@clearmymind.com> wrote in message
news:3f**********************@reader1.news.skynet. be...
Hi all,

I'm searching fulltime for days now, and I don't find the solution, so I'm
thinking this is more a bug :(

If i use following code in form&subforms:

Me.Parent![PeopleBase].Requery

Then sometimes (after 5, 6 or 20 times) i get an endless loop with 100% cpu utilization (in the status bar you can see the note 'Calculating' !)

Some people put this code into the OnCurrent event and other say that this
is the cause. I tested the code everywhere (onclick, on change, etc...) and still the same err occurs. Did err handling to fetch this loop but nothing. I'm 100% sure that this line of code is giving me the loop problems. (Some
people reported that there was no problem in access97 and that it all
started with version 2000!)

If i search the net for this then you will find some 1000 msg reporting this problem. I run through the most of them to find some solution, but nothing
did help yet.

Please, someone smarter then me, please help me with this, I can see it
anymore!

Thnx world.

ps: For your info, I'm using Access2000 eng on a Win2k eng sp4 platform (all patches installed)

Nov 12 '05 #2
The link you provided gave the (perhaps unhelpful) solution of firing this
code from a diferent event, when you tried using diferent events to fire the
code did you delete the line of code from the OnCurrent event (just
checking)?

If so, perhaps you coud use a global variable and the Timer function to
produce code that will not refresh if it is within a certain amount of time
from a previous refresh?

--
Michael Hopwood (Phobos)
"John F." <jo**@clearmymind.com> wrote in message
news:3f***********************@reader3.news.skynet .be...
Hi all again,

ITS A BUG!!!!

http://support.microsoft.com/default...b;en-us;288374

Does someone has got good resolution for this ?

Thnx in advance


"John F." <jo**@clearmymind.com> wrote in message
news:3f**********************@reader1.news.skynet. be...
Hi all,

I'm searching fulltime for days now, and I don't find the solution, so I'm thinking this is more a bug :(

If i use following code in form&subforms:

Me.Parent![PeopleBase].Requery

Then sometimes (after 5, 6 or 20 times) i get an endless loop with 100%

cpu
utilization (in the status bar you can see the note 'Calculating' !)

Some people put this code into the OnCurrent event and other say that this is the cause. I tested the code everywhere (onclick, on change, etc...)

and
still the same err occurs. Did err handling to fetch this loop but

nothing.
I'm 100% sure that this line of code is giving me the loop problems. (Some people reported that there was no problem in access97 and that it all
started with version 2000!)

If i search the net for this then you will find some 1000 msg reporting

this
problem. I run through the most of them to find some solution, but nothing did help yet.

Please, someone smarter then me, please help me with this, I can see it
anymore!

Thnx world.

ps: For your info, I'm using Access2000 eng on a Win2k eng sp4 platform

(all
patches installed)


Nov 12 '05 #3
Hi Michael,

I did delete the code in the OnCurrent event when i was trying it on other
places. I even place it in a button, to fire it at own will. The weird thing
is that it I found out that it only happens when there was a previous delete
function fired on the table that gives a warning like : "The record cannot
be deleted or changed because table 'xxxx' includes related records.". If
you do then a Requery on the subforms then its bingo :( 100% cpu loop.

I'm using Access 2000, but the art stated acc2002, so I think this is a big
bug for years now.

I'm trying now to use the OnCurrent to fire some code that will fetch the
current record Key id and change the subform DataSourceQuery and refresh the
subform. I don't know about this, but its a shot I can do. If I have some
code i will post it here.

I don't want to use the timer function because it has nothing to do with "an
event1 that triggers event2 that triggers back event1.", because I use
buttons I only click ones, just for testing. I know, everybody is talking
about this back trigger, but i'm 100% sure this is not true.

For me, the Requery function just sucks, and is no good. Just a function to
stay away from. If it only happens 2 times on 10 then you know what I mean.

Hoop someone got some replacement code for this.

Cya all.

Thnx Michael,

JF

"Michael Hopwood" <la******@spammers.co.uk> wrote in message
news:J6********************@brightview.com...
The link you provided gave the (perhaps unhelpful) solution of firing this
code from a diferent event, when you tried using diferent events to fire the code did you delete the line of code from the OnCurrent event (just
checking)?

If so, perhaps you coud use a global variable and the Timer function to
produce code that will not refresh if it is within a certain amount of time from a previous refresh?

--
Michael Hopwood (Phobos)
"John F." <jo**@clearmymind.com> wrote in message
news:3f***********************@reader3.news.skynet .be...
Hi all again,

ITS A BUG!!!!

http://support.microsoft.com/default...b;en-us;288374

Does someone has got good resolution for this ?

Thnx in advance


"John F." <jo**@clearmymind.com> wrote in message
news:3f**********************@reader1.news.skynet. be...
Hi all,

I'm searching fulltime for days now, and I don't find the solution, so I'm thinking this is more a bug :(

If i use following code in form&subforms:

Me.Parent![PeopleBase].Requery

Then sometimes (after 5, 6 or 20 times) i get an endless loop with 100%
cpu
utilization (in the status bar you can see the note 'Calculating' !)

Some people put this code into the OnCurrent event and other say that this is the cause. I tested the code everywhere (onclick, on change,
etc...)
and
still the same err occurs. Did err handling to fetch this loop but

nothing.
I'm 100% sure that this line of code is giving me the loop problems. (Some people reported that there was no problem in access97 and that it all
started with version 2000!)

If i search the net for this then you will find some 1000 msg
reporting this
problem. I run through the most of them to find some solution, but nothing did help yet.

Please, someone smarter then me, please help me with this, I can see

it anymore!

Thnx world.

ps: For your info, I'm using Access2000 eng on a Win2k eng sp4

platform (all
patches installed)



Nov 12 '05 #4

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

Similar topics

8
by: Drew | last post by:
I am trying to build a small app that shows a Course Title from the database, then displays a dropdown full of categories for the user to choose one... I thought a loop would be the best way to...
13
by: Bev in TX | last post by:
We are using Visual Studio .NET 2003. When using that compiler, the following example code goes into an endless loop in the "while" loop when the /Og optimization option is used: #include...
13
by: scorpion53061 | last post by:
Very urgent and I am very close but need a little help to get me over the edge........ I need to write these columns to a html file with each row containing these columns (seperated by breaks)....
2
by: Nico | last post by:
Hello everyone, I have re-formulated the question I asked on my last post:: I am trying to capture the System event raised when a Network Connection is established in VB.NET (ie. connection...
73
by: Claudio Grondi | last post by:
In the process of learning about some deeper details of Python I am curious if it is possible to write a 'prefix' code assigning to a and b something special, so, that Python gets trapped in an...
6
by: uche | last post by:
This function that I have implemented gives me an infinite loop. I am trying to produce a hexdum program, however, this function is not functioning correctly.....Please help. void...
4
by: j_depp_99 | last post by:
Thanks to those guys who helped me out yesterday. I have one more problem; my print function for the queue program doesnt work and goes into an endless loop. Also I am unable to calculate the...
9
by: =?Utf-8?B?d2luZHNpbQ==?= | last post by:
Hi, I have a project based on .Net 1.1 and VS 2003,now I am trying to upgrade it to .Net 2.0 and VS 2005.The project passes the 'Build Solution',but When I start Debug, it suddenly comes...
6
by: muddasirmunir | last post by:
i make a form whic has one data grid and one text box and one button when i write a name on tex box and click add the name stored in database successfully. now in the grid i want to show all the...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
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,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

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.