dbTalk Databases Forums  

Reserved error (-1524); there is no message for this error.

comp.databases.ms-access comp.databases.ms-access


Discuss Reserved error (-1524); there is no message for this error. in the comp.databases.ms-access forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
adampierce
 
Posts: n/a

Default Reserved error (-1524); there is no message for this error. - 01-03-2008 , 03:17 PM






I am trying to run a pretty simple select query in Access 2007, and I
keep getting the error message "Reserved error (-1524); there is no
message for this error." There are no linked tables in the database -
the design of the database is very simple.

I should also note that I ran the "compact and repair database" tool
and I am still getting the same error message.

Any thoughts?

Thanks!

Reply With Quote
  #2  
Old   
Fred Zuckerman
 
Posts: n/a

Default Re: Reserved error (-1524); there is no message for this error. - 01-03-2008 , 03:36 PM






"adampierce" <apmessner (AT) gmail (DOT) com> wrote

Quote:
I am trying to run a pretty simple select query in Access 2007, and I
keep getting the error message "Reserved error (-1524); there is no
message for this error." There are no linked tables in the database -
the design of the database is very simple.

I should also note that I ran the "compact and repair database" tool
and I am still getting the same error message.

Any thoughts?

Thanks!
Just a guess.....
Do you have any field names that use "reserved" words?
Like:
Date, Name, Min, Max, Sum, Where, etc

Would you post the query?
Fred Zuckerman




Reply With Quote
  #3  
Old   
adampierce
 
Posts: n/a

Default Re: Reserved error (-1524); there is no message for this error. - 01-03-2008 , 03:41 PM



I don't think I'm using any reserved words...Here is the SQL:

SELECT E_CURRENT_DATA.Prefix, E_CURRENT_DATA.LastName,
E_CURRENT_DATA.FirstName, E_CURRENT_DATA.Address, E_CURRENT_DATA.City,
E_CURRENT_DATA.ZIP
FROM E_CURRENT_DATA
WHERE (((E_CURRENT_DATA.Volunteer)=False) AND
((E_CURRENT_DATA.Absent)=False) AND
((E_CURRENT_DATA.Duplicate)=False))
ORDER BY E_CURRENT_DATA.LastName, E_CURRENT_DATA.FirstName;

I noticed that if I take out the "Where" clause, it works, but that's
no good to me, because I need to filter the data on these fields.

Thanks!

Reply With Quote
  #4  
Old   
Fred Zuckerman
 
Posts: n/a

Default Re: Reserved error (-1524); there is no message for this error. - 01-03-2008 , 04:08 PM



"adampierce" <apmessner (AT) gmail (DOT) com> wrote

Quote:
I don't think I'm using any reserved words...Here is the SQL:

SELECT E_CURRENT_DATA.Prefix, E_CURRENT_DATA.LastName,
E_CURRENT_DATA.FirstName, E_CURRENT_DATA.Address, E_CURRENT_DATA.City,
E_CURRENT_DATA.ZIP
FROM E_CURRENT_DATA
WHERE (((E_CURRENT_DATA.Volunteer)=False) AND
((E_CURRENT_DATA.Absent)=False) AND
((E_CURRENT_DATA.Duplicate)=False))
ORDER BY E_CURRENT_DATA.LastName, E_CURRENT_DATA.FirstName;

I noticed that if I take out the "Where" clause, it works, but that's
no good to me, because I need to filter the data on these fields.

Thanks!
It works for me (A2K on WXP).
Are you sure that the fields [Volunteer], [Absent], [Duplicate] are of the
yes/no type?
You might try removing the where clause by one field at a time, maybe just
one of the fields is the problem.
Fred




Reply With Quote
  #5  
Old   
adampierce
 
Posts: n/a

Default Re: Reserved error (-1524); there is no message for this error. - 01-03-2008 , 04:15 PM



Yes...They are definitely yes/no fields...I tried removing them one at
a time, and it turns out that if I remove all of them, the query runs,
but if I leave any of them in, it doesn't run. What is possibly even
more odd is that I can filter on these fields in some queries but not
in others. I even have a query where this type of WHERE clause works
when I run the query, but when I try to view it through a report
rather than in datasheet view, I get this same weird error message.

Does it have anything to do with the fact that I'm using Access 2007?

Thanks again for your help.

Reply With Quote
  #6  
Old   
Fred Zuckerman
 
Posts: n/a

Default Re: Reserved error (-1524); there is no message for this error. - 01-03-2008 , 04:34 PM



"adampierce" <apmessner (AT) gmail (DOT) com> wrote

Quote:
Yes...They are definitely yes/no fields...I tried removing them one at
a time, and it turns out that if I remove all of them, the query runs,
but if I leave any of them in, it doesn't run. What is possibly even
more odd is that I can filter on these fields in some queries but not
in others. I even have a query where this type of WHERE clause works
when I run the query, but when I try to view it through a report
rather than in datasheet view, I get this same weird error message.

Does it have anything to do with the fact that I'm using Access 2007?

Thanks again for your help.
Next guess....
Check your references to see if any show as "Missing"
Ctrl+G, Tools -> References
Otherwise, I'm stumped.
Sorry
Fred




Reply With Quote
  #7  
Old   
adampierce
 
Posts: n/a

Default Re: Reserved error (-1524); there is no message for this error. - 01-03-2008 , 04:39 PM



How do I know if a reference is missing? When I look at references, I
get a list of available references, and the first four have check
marks next to them, and the rest are blank. I don't clearly see that
anything is missing, though.

Thanks again!

Reply With Quote
  #8  
Old   
lyle
 
Posts: n/a

Default Re: Reserved error (-1524); there is no message for this error. - 01-03-2008 , 04:43 PM



On Jan 3, 3:41 pm, adampierce <apmess... (AT) gmail (DOT) com> wrote:
Quote:
I don't think I'm using any reserved words...Here is the SQL:

SELECT E_CURRENT_DATA.Prefix, E_CURRENT_DATA.LastName,
E_CURRENT_DATA.FirstName, E_CURRENT_DATA.Address, E_CURRENT_DATA.City,
E_CURRENT_DATA.ZIP
FROM E_CURRENT_DATA
WHERE (((E_CURRENT_DATA.Volunteer)=False) AND
((E_CURRENT_DATA.Absent)=False) AND
((E_CURRENT_DATA.Duplicate)=False))
ORDER BY E_CURRENT_DATA.LastName, E_CURRENT_DATA.FirstName;

I noticed that if I take out the "Where" clause, it works, but that's
no good to me, because I need to filter the data on these fields.

Thanks!
Have you tried simplifying the query and the WHERE clause as much as
possible? EG

"SELECT Prefix, LastName, FirstName,
Address, City, ZIP
FROM E_CURRENT_DATA
WHERE NOT (Volunteer Or Absent Or Duplicate)
ORDER BY LastName, FirstName"


Reply With Quote
  #9  
Old   
lyle
 
Posts: n/a

Default Re: Reserved error (-1524); there is no message for this error. - 01-03-2008 , 04:43 PM



On Jan 3, 3:41 pm, adampierce <apmess... (AT) gmail (DOT) com> wrote:
Quote:
I don't think I'm using any reserved words...Here is the SQL:

SELECT E_CURRENT_DATA.Prefix, E_CURRENT_DATA.LastName,
E_CURRENT_DATA.FirstName, E_CURRENT_DATA.Address, E_CURRENT_DATA.City,
E_CURRENT_DATA.ZIP
FROM E_CURRENT_DATA
WHERE (((E_CURRENT_DATA.Volunteer)=False) AND
((E_CURRENT_DATA.Absent)=False) AND
((E_CURRENT_DATA.Duplicate)=False))
ORDER BY E_CURRENT_DATA.LastName, E_CURRENT_DATA.FirstName;

I noticed that if I take out the "Where" clause, it works, but that's
no good to me, because I need to filter the data on these fields.

Thanks!
Have you tried simplifying the query and the WHERE clause as much as
possible? EG

"SELECT Prefix, LastName, FirstName,
Address, City, ZIP
FROM E_CURRENT_DATA
WHERE NOT (Volunteer Or Absent Or Duplicate)
ORDER BY LastName, FirstName"


Reply With Quote
  #10  
Old   
Fred Zuckerman
 
Posts: n/a

Default Re: Reserved error (-1524); there is no message for this error. - 01-03-2008 , 04:44 PM



"adampierce" <apmessner (AT) gmail (DOT) com> wrote

Quote:
How do I know if a reference is missing? When I look at references, I
get a list of available references, and the first four have check
marks next to them, and the rest are blank. I don't clearly see that
anything is missing, though.

Thanks again!
If there was a problem, then one of the checked items would have the word
"Missing" next to it.
Fred




Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.