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

Access automatically shuts down after filtering or sorting a form

Hi,

I have a form that take some time to load due to many comboboxes and at
least 8 subforms.
When I filter or sort the main form I get an error message and then Access
shuts down. They ask if I want to send the error report to Microsoft. Has
anybody seen this type of error message and what can I do to prevent it from
happening. Am I doing something illegal in my code? It used to work but I
have added conditional formatting to a subform but that shouldn't cause any
problem. It ONLY happens when I try to filter or sort the main recordset
using Access built-in functions. I am using Access 2002.
Any help appreciated
Richard
Nov 12 '05 #1
5 3059
Conditional formatting in a sub-form and filtering the main form caused this
problem for me, remove the formating and then see if the problem doesn't go
away. Incidentally, I'll bet that as long as you don't apply a filter to the
main form the database will work fine even with conditional formatting in
the sub-form. I have had almost exactly the same problem, only in my case
Access 2002 would not shut down until I attempted to scroll after filtering.
You are lucky, because your post contains the cause of this problem and
because mine didn't start until I switched to 2002 it took me longer to
track down.

--
Jeffrey R. Bailey
"Richard" <rw**********@chello.se> wrote in message
news:G3sub.3792$%W3.19990@amstwist00...
Hi,

I have a form that take some time to load due to many comboboxes and at
least 8 subforms.
When I filter or sort the main form I get an error message and then Access
shuts down. They ask if I want to send the error report to Microsoft. Has
anybody seen this type of error message and what can I do to prevent it from happening. Am I doing something illegal in my code? It used to work but I
have added conditional formatting to a subform but that shouldn't cause any problem. It ONLY happens when I try to filter or sort the main recordset
using Access built-in functions. I am using Access 2002.
Any help appreciated
Richard

Nov 12 '05 #2
Incidentally what you are doing isn't illegal and the solution I described
above is only a work around. When I had the problem I searched the news
groups and knowledge bases and never found mention of anyone else having it.
I have always assumed it to be an issue related to running multiple
development environments on my main machine. I worked around conditional
formatting by adding some check boxes to reflect the state of the records in
a different way. I couldn't do without filtering the main form in my
application.

--
Jeffrey R. Bailey
"Jeffrey R. Bailey" <mr**********@yahoo.com> wrote in message
news:AP***************@twister.tampabay.rr.com...
Conditional formatting in a sub-form and filtering the main form caused this problem for me, remove the formating and then see if the problem doesn't go away. Incidentally, I'll bet that as long as you don't apply a filter to the main form the database will work fine even with conditional formatting in
the sub-form. I have had almost exactly the same problem, only in my case
Access 2002 would not shut down until I attempted to scroll after filtering. You are lucky, because your post contains the cause of this problem and
because mine didn't start until I switched to 2002 it took me longer to
track down.

--
Jeffrey R. Bailey
"Richard" <rw**********@chello.se> wrote in message
news:G3sub.3792$%W3.19990@amstwist00...
Hi,

I have a form that take some time to load due to many comboboxes and at
least 8 subforms.
When I filter or sort the main form I get an error message and then Access shuts down. They ask if I want to send the error report to Microsoft. Has anybody seen this type of error message and what can I do to prevent it

from
happening. Am I doing something illegal in my code? It used to work but I have added conditional formatting to a subform but that shouldn't cause

any
problem. It ONLY happens when I try to filter or sort the main recordset
using Access built-in functions. I am using Access 2002.
Any help appreciated
Richard


Nov 12 '05 #3
I have 2 controls with conditional formatting. One based on 3 conditions and
the other one on 1 condition. I deleted all figuring I can do this in code.
But the problem persists. Not only when I try to filter but also when I try
to sort the recordset on any control. I have about 1000 records in the
recordset.

Richard
"Jeffrey R. Bailey" <mr**********@yahoo.com> skrev i meddelandet
news:s2***************@twister.tampabay.rr.com...
Incidentally what you are doing isn't illegal and the solution I described
above is only a work around. When I had the problem I searched the news
groups and knowledge bases and never found mention of anyone else having it. I have always assumed it to be an issue related to running multiple
development environments on my main machine. I worked around conditional
formatting by adding some check boxes to reflect the state of the records in a different way. I couldn't do without filtering the main form in my
application.

--
Jeffrey R. Bailey
"Jeffrey R. Bailey" <mr**********@yahoo.com> wrote in message
news:AP***************@twister.tampabay.rr.com...
Conditional formatting in a sub-form and filtering the main form caused this
problem for me, remove the formating and then see if the problem doesn't

go
away. Incidentally, I'll bet that as long as you don't apply a filter to

the
main form the database will work fine even with conditional formatting in
the sub-form. I have had almost exactly the same problem, only in my case Access 2002 would not shut down until I attempted to scroll after

filtering.
You are lucky, because your post contains the cause of this problem and
because mine didn't start until I switched to 2002 it took me longer to
track down.

--
Jeffrey R. Bailey
"Richard" <rw**********@chello.se> wrote in message
news:G3sub.3792$%W3.19990@amstwist00...
Hi,

I have a form that take some time to load due to many comboboxes and at least 8 subforms.
When I filter or sort the main form I get an error message and then Access shuts down. They ask if I want to send the error report to Microsoft. Has anybody seen this type of error message and what can I do to prevent it from
happening. Am I doing something illegal in my code? It used to work
but I have added conditional formatting to a subform but that shouldn't
cause any
problem. It ONLY happens when I try to filter or sort the main

recordset using Access built-in functions. I am using Access 2002.
Any help appreciated
Richard



Nov 12 '05 #4
I was afraid that we were chasing similar symptoms but not the same problem.
Though I discovered how to work around the problem I have the work around
did not lead to any understanding.

To troubleshoot I tried compacting and compiling the database and that
didn't work. I then began removing items (i.e. code(in small blocks, and
only code triggered during startup, or on current), controls, the sub-form,
re-writing queries, etc) from the form until it started to function
normally. Eventually this led to my focusing on the sub-form with
conditional formatting. I discovered that if I removed the sub-form the
main form was Ok. Then it was a matter of isolating the problem on the
sub-form. In order to do this, I re-created the sub-form from scratch, but
without the conditional formatting and that turned out to be the trigger for
my problem. This always struck me as odd, because I was doing no development
on the sub-form. Hopefully, similar steps will eventually lead to your
isolating this problem.

When I describe it like above it seems like a several minute troubleshoot,
but it wasn't. My problem only manifested itself intermittently, and I
could get around it by restoring from an old copy (when I am programming I
make a full back up every hour of my work). I had the luxury of being able
to look at this problem off and on for a month (it only happened on my
machine). I have checked my incident database and the fix that worked for me
was applied on 10-23-03 and since the change the problem has not reappeared.

Sorry I could not offer more help.

--
Jeffrey R. Bailey
"Richard" <rw**********@chello.se> wrote in message
news:g2Gub.3871$%W3.20170@amstwist00...
I have 2 controls with conditional formatting. One based on 3 conditions and the other one on 1 condition. I deleted all figuring I can do this in code. But the problem persists. Not only when I try to filter but also when I try to sort the recordset on any control. I have about 1000 records in the
recordset.

Richard
"Jeffrey R. Bailey" <mr**********@yahoo.com> skrev i meddelandet
news:s2***************@twister.tampabay.rr.com...
Incidentally what you are doing isn't illegal and the solution I described
above is only a work around. When I had the problem I searched the news
groups and knowledge bases and never found mention of anyone else having it.
I have always assumed it to be an issue related to running multiple
development environments on my main machine. I worked around conditional formatting by adding some check boxes to reflect the state of the records in
a different way. I couldn't do without filtering the main form in my
application.

--
Jeffrey R. Bailey
"Jeffrey R. Bailey" <mr**********@yahoo.com> wrote in message
news:AP***************@twister.tampabay.rr.com...
Conditional formatting in a sub-form and filtering the main form caused this
problem for me, remove the formating and then see if the problem
doesn't go
away. Incidentally, I'll bet that as long as you don't apply a filter
to the
main form the database will work fine even with conditional formatting in the sub-form. I have had almost exactly the same problem, only in my case Access 2002 would not shut down until I attempted to scroll after

filtering.
You are lucky, because your post contains the cause of this problem
and because mine didn't start until I switched to 2002 it took me longer to track down.

--
Jeffrey R. Bailey
"Richard" <rw**********@chello.se> wrote in message
news:G3sub.3792$%W3.19990@amstwist00...
> Hi,
>
> I have a form that take some time to load due to many comboboxes and

at > least 8 subforms.
> When I filter or sort the main form I get an error message and then

Access
> shuts down. They ask if I want to send the error report to
Microsoft. Has
> anybody seen this type of error message and what can I do to prevent

it from
> happening. Am I doing something illegal in my code? It used to work but
I
> have added conditional formatting to a subform but that shouldn't

cause any
> problem. It ONLY happens when I try to filter or sort the main recordset > using Access built-in functions. I am using Access 2002.
>
>
> Any help appreciated
>
>
> Richard
>
>
>



Nov 12 '05 #5
The troubleshoot process is the last solution, it's just that I rather not
go into that type of tedious work if I can avoid it. I guess I have to
anyway.

Thanks for all your help,

Richard
"Jeffrey R. Bailey" <mr**********@yahoo.com> skrev i meddelandet
news:sD*****************@twister.tampabay.rr.com.. .
I was afraid that we were chasing similar symptoms but not the same problem. Though I discovered how to work around the problem I have the work around
did not lead to any understanding.

To troubleshoot I tried compacting and compiling the database and that
didn't work. I then began removing items (i.e. code(in small blocks, and
only code triggered during startup, or on current), controls, the sub-form, re-writing queries, etc) from the form until it started to function
normally. Eventually this led to my focusing on the sub-form with
conditional formatting. I discovered that if I removed the sub-form the
main form was Ok. Then it was a matter of isolating the problem on the
sub-form. In order to do this, I re-created the sub-form from scratch, but without the conditional formatting and that turned out to be the trigger for my problem. This always struck me as odd, because I was doing no development on the sub-form. Hopefully, similar steps will eventually lead to your
isolating this problem.

When I describe it like above it seems like a several minute troubleshoot,
but it wasn't. My problem only manifested itself intermittently, and I
could get around it by restoring from an old copy (when I am programming I
make a full back up every hour of my work). I had the luxury of being able to look at this problem off and on for a month (it only happened on my
machine). I have checked my incident database and the fix that worked for me was applied on 10-23-03 and since the change the problem has not reappeared.
Sorry I could not offer more help.

--
Jeffrey R. Bailey
"Richard" <rw**********@chello.se> wrote in message
news:g2Gub.3871$%W3.20170@amstwist00...
I have 2 controls with conditional formatting. One based on 3 conditions and
the other one on 1 condition. I deleted all figuring I can do this in

code.
But the problem persists. Not only when I try to filter but also when I

try
to sort the recordset on any control. I have about 1000 records in the
recordset.

Richard
"Jeffrey R. Bailey" <mr**********@yahoo.com> skrev i meddelandet
news:s2***************@twister.tampabay.rr.com...
Incidentally what you are doing isn't illegal and the solution I described above is only a work around. When I had the problem I searched the news groups and knowledge bases and never found mention of anyone else having
it.
I have always assumed it to be an issue related to running multiple
development environments on my main machine. I worked around conditional formatting by adding some check boxes to reflect the state of the records
in
a different way. I couldn't do without filtering the main form in my
application.

--
Jeffrey R. Bailey
"Jeffrey R. Bailey" <mr**********@yahoo.com> wrote in message
news:AP***************@twister.tampabay.rr.com...
> Conditional formatting in a sub-form and filtering the main form caused this
> problem for me, remove the formating and then see if the problem doesn't go
> away. Incidentally, I'll bet that as long as you don't apply a
filter to the
> main form the database will work fine even with conditional
formatting in
> the sub-form. I have had almost exactly the same problem, only in
my case
> Access 2002 would not shut down until I attempted to scroll after
filtering.
> You are lucky, because your post contains the cause of this problem and > because mine didn't start until I switched to 2002 it took me longer to > track down.
>
> --
> Jeffrey R. Bailey
> "Richard" <rw**********@chello.se> wrote in message
> news:G3sub.3792$%W3.19990@amstwist00...
> > Hi,
> >
> > I have a form that take some time to load due to many comboboxes
and at
> > least 8 subforms.
> > When I filter or sort the main form I get an error message and
then Access
> > shuts down. They ask if I want to send the error report to

Microsoft. Has
> > anybody seen this type of error message and what can I do to

prevent it
> from
> > happening. Am I doing something illegal in my code? It used to
work but
I
> > have added conditional formatting to a subform but that shouldn't

cause
> any
> > problem. It ONLY happens when I try to filter or sort the main

recordset
> > using Access built-in functions. I am using Access 2002.
> >
> >
> > Any help appreciated
> >
> >
> > Richard
> >
> >
> >
>
>
>



Nov 12 '05 #6

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

Similar topics

1
by: Gordon Sanderson | last post by:
I have been working with for two days on a database with no problems(changing forms and adding code to the forms and a module). Shut down last night was fine, with no errors generated. This...
22
by: TC | last post by:
I have an Access database application with a lot of custom row functions written in VBA. In other words, a lot of queries contain calculated fields which use functions defined in the modules. I...
2
by: Nick | last post by:
What I want to do is have 2 pull down lists, for example a state pull down list and a city pull down list. What I would like to have done is when you select a state from the state pull down list...
3
by: rdemyan via AccessMonster.com | last post by:
I have a forced logoff routine in place that works well unless an Access messagebox is showing in the front-end that the routine is trying to shut down. It doesn't work use Access commands to...
6
by: Chris Zoper | last post by:
Hello, I have a form that shows a lot of records based on a passthrough query to a SQL Server database. I noticed that the Filter and the Sort property of the form do not properly work, often...
2
by: rdemyan via AccessMonster.com | last post by:
I have a custom message form that I want to display when the user shuts down my app. Some clean up needs to be done during shutdown and I want to display this form and then display various...
4
by: Frank | last post by:
My program gets a WM_QUERYENDSESSION message and asks the user if it is OK to shutdown. While he's thinking about it, Windows displays a box saying the program is not responding, and if not...
0
by: Yarik | last post by:
Hello, Here is a sample (and very simple) code that binds an Access 2003 form to a fabricated ADO recordset: ' Create recordset... Dim rs As ADODB.Recordset: Set rs = New ADODB.Recordset '...
9
by: Bob Alston | last post by:
I have an application with about 30 users, most of whom use the application on laptops that they take with them. The system is split into FE and BE. The BE on each laptop is a replica. The...
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: 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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
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...
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.