A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Running & Setting Up Queries
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

unstable query



 
 
Thread Tools Display Modes
  #1  
Old February 23rd, 2010, 06:28 PM posted to microsoft.public.access.queries
Bibi
external usenet poster
 
Posts: 54
Default unstable query

I have a reservation database that I designed and have been using for 7 or so
years now. I had help designing the query I show below from a discussion
group several years ago. In the past it would, very rarely, erase
itself............It just wouldn't work and there would be no language in the
SQL view and I would have to paste in a copy. Recently it has become
completely unstable when I run it in Access 2003 on my home computer. I
open a good copy of the data base, run the query once an dit will work - the
second time I try to run it - it has erased itself......When I run it on my
office computer with Access 2000 it is fine. I've checked for viruses,
etc......Any ideas what the problem could be? I uninstalled and reinstalled
Access and it worked but only for a day.....Is there anything intrinsically
unstable about the following query? Do I have a virus? I use Norton.

SELECT *
FROM tblLeases
WHERE (((tblLeases.Arrive)=(SELECT Min([Self].[arrive])
FROM [tblLeases] AS [Self]
WHERE [Self].[Property] = [tblLeases].[Property]
AND [Self].[arrive] [FORMS].[favailable].[Text1])));


--
TIA
Bibi
  #2  
Old February 23rd, 2010, 07:13 PM posted to microsoft.public.access.queries
John W. Vinson
external usenet poster
 
Posts: 18,261
Default unstable query

On Tue, 23 Feb 2010 10:28:01 -0800, Bibi
wrote:

I have a reservation database that I designed and have been using for 7 or so
years now. I had help designing the query I show below from a discussion
group several years ago. In the past it would, very rarely, erase
itself............It just wouldn't work and there would be no language in the
SQL view and I would have to paste in a copy. Recently it has become
completely unstable when I run it in Access 2003 on my home computer. I
open a good copy of the data base, run the query once an dit will work - the
second time I try to run it - it has erased itself......When I run it on my
office computer with Access 2000 it is fine. I've checked for viruses,
etc......Any ideas what the problem could be? I uninstalled and reinstalled
Access and it worked but only for a day.....Is there anything intrinsically
unstable about the following query? Do I have a virus? I use Norton.

SELECT *
FROM tblLeases
WHERE (((tblLeases.Arrive)=(SELECT Min([Self].[arrive])
FROM [tblLeases] AS [Self]
WHERE [Self].[Property] = [tblLeases].[Property]
AND [Self].[arrive] [FORMS].[favailable].[Text1])));


There's nothing about a query that would cause it to commit suicide in this
way! I strongly suspect that your database is corrupt, possibly with some
problems in the hidden system tables.

Check out the suggestions at Tony Toews' corruption FAQ:
http://www.granite.ab.ca/access/corruptmdbs.htm

Start by backing up your database (you may need a copy if some of the possible
solutions do more harm than good).
--

John W. Vinson [MVP]
  #3  
Old February 23rd, 2010, 07:39 PM posted to microsoft.public.access.queries
Jerry Whittle
external usenet poster
 
Posts: 4,732
Default unstable query

There were some bugs in early versions of Access 2003 but they have been
fixed and 2003 should be very stable. Open up Access and go to Help, About
Microsoft Access. The first line should have SP3 at the end of it. If not,
you are missing patches.

There's nothing in your query that should cause such behavior. As it works
correctly on one computer, but not the other, it's probably something wrong
with the computer in question.

I have had trouble uninstalling Office in the past. MS may have a tool which
can completely remove Office. Notice that I didn't just say Access, but
rather, the entire Office suite to fix problems.

In a couple of cases I wiped the hard drive clean and started completely
over with Windows, Office, and any other needed program. Often it's easier to
just buy a new PC.
--
Jerry Whittle, Microsoft Access MVP
Light. Strong. Cheap. Pick two. Keith Bontrager - Bicycle Builder.


"Bibi" wrote:

I have a reservation database that I designed and have been using for 7 or so
years now. I had help designing the query I show below from a discussion
group several years ago. In the past it would, very rarely, erase
itself............It just wouldn't work and there would be no language in the
SQL view and I would have to paste in a copy. Recently it has become
completely unstable when I run it in Access 2003 on my home computer. I
open a good copy of the data base, run the query once an dit will work - the
second time I try to run it - it has erased itself......When I run it on my
office computer with Access 2000 it is fine. I've checked for viruses,
etc......Any ideas what the problem could be? I uninstalled and reinstalled
Access and it worked but only for a day.....Is there anything intrinsically
unstable about the following query? Do I have a virus? I use Norton.

SELECT *
FROM tblLeases
WHERE (((tblLeases.Arrive)=(SELECT Min([Self].[arrive])
FROM [tblLeases] AS [Self]
WHERE [Self].[Property] = [tblLeases].[Property]
AND [Self].[arrive] [FORMS].[favailable].[Text1])));


--
TIA
Bibi

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 02:38 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.