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  

Query keeps looking for Query1 field



 
 
Thread Tools Display Modes
  #1  
Old April 28th, 2010, 04:13 PM posted to microsoft.public.access.queries
Cathy
external usenet poster
 
Posts: 253
Default Query keeps looking for Query1 field

Okay... so I have this bad habit of saving queries as Query1, Query2, etc if
I have not completed them and I get interrupted. It helps me get back to the
incomplete work faster/easier.

I have a DB that began as an Access 2007 DB (.accdb) and was converted down
to an Access 2003 DB (.mdb). Since then, these queries that began their life
as Query1, Query2... keep asking for fields from their old query name. I
have looked in the SQL, the Parameters, etc but can find no reference to the
old query name. One solution is to copy and paste the SQL into an empty
query and save it with the new name (again). What is causing this problem?
Where is this phantom Query1 information being stored? Is it because of the
backwards conversion?

Thank you,
  #2  
Old April 28th, 2010, 04:49 PM posted to microsoft.public.access.queries
Allen Browne
external usenet poster
 
Posts: 11,706
Default Query keeps looking for Query1 field

Make sure there's nothing in the query's Filter or OrderBy properties.

Also check that Name AutoCorrect is turned off.

--
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.


"Cathy" wrote in message
...
Okay... so I have this bad habit of saving queries as Query1, Query2, etc
if
I have not completed them and I get interrupted. It helps me get back to
the
incomplete work faster/easier.

I have a DB that began as an Access 2007 DB (.accdb) and was converted
down
to an Access 2003 DB (.mdb). Since then, these queries that began their
life
as Query1, Query2... keep asking for fields from their old query name. I
have looked in the SQL, the Parameters, etc but can find no reference to
the
old query name. One solution is to copy and paste the SQL into an empty
query and save it with the new name (again). What is causing this
problem?
Where is this phantom Query1 information being stored? Is it because of
the
backwards conversion?

Thank you,


  #3  
Old April 28th, 2010, 05:00 PM posted to microsoft.public.access.queries
Dorian
external usenet poster
 
Posts: 542
Default Query keeps looking for Query1 field

Whenever you delete an object in Access, it actually stays in the database
until you do a compact/repair.
You have provided your own solution. Recreate the queries in a fresh query,
delete the originals and then do compact/repair.
If this does not eliminate the problem, create a brand new empty dayabase
and import all your desired objects into it.
-- Dorian.
"Give someone a fish and they eat for a day; teach someone to fish and they
eat for a lifetime".


"Cathy" wrote:

Okay... so I have this bad habit of saving queries as Query1, Query2, etc if
I have not completed them and I get interrupted. It helps me get back to the
incomplete work faster/easier.

I have a DB that began as an Access 2007 DB (.accdb) and was converted down
to an Access 2003 DB (.mdb). Since then, these queries that began their life
as Query1, Query2... keep asking for fields from their old query name. I
have looked in the SQL, the Parameters, etc but can find no reference to the
old query name. One solution is to copy and paste the SQL into an empty
query and save it with the new name (again). What is causing this problem?
Where is this phantom Query1 information being stored? Is it because of the
backwards conversion?

Thank you,

  #4  
Old April 28th, 2010, 11:08 PM posted to microsoft.public.access.queries
Cathy
external usenet poster
 
Posts: 253
Default Query keeps looking for Query1 field

The autocorrect was the issue. Thank you!

"Allen Browne" wrote:

Make sure there's nothing in the query's Filter or OrderBy properties.

Also check that Name AutoCorrect is turned off.

--
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.


"Cathy" wrote in message
...
Okay... so I have this bad habit of saving queries as Query1, Query2, etc
if
I have not completed them and I get interrupted. It helps me get back to
the
incomplete work faster/easier.

I have a DB that began as an Access 2007 DB (.accdb) and was converted
down
to an Access 2003 DB (.mdb). Since then, these queries that began their
life
as Query1, Query2... keep asking for fields from their old query name. I
have looked in the SQL, the Parameters, etc but can find no reference to
the
old query name. One solution is to copy and paste the SQL into an empty
query and save it with the new name (again). What is causing this
problem?
Where is this phantom Query1 information being stored? Is it because of
the
backwards conversion?

Thank you,


.

 




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 01:19 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.