Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations John Tel on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Access select query -- invalid argument

Status
Not open for further replies.

Ucaihc

Programmer
Aug 2, 2006
35
US
I use the following SQL statement in an Access query:

SELECT tblWWS_sch.*
FROM tblWWS_sch
WHERE (((tblWWS_sch.Archive)=0));

This work fine in one copy of the database with 13576 records. In another copy of the database with 14000+ reocrds, the query no longer works unless I omit the where clause. The field is a boolean.
 
Have you tried removing the parens from the WHERE clause?WHERE tblWWS_sch.Archive = 0;

I have great faith in fools; self-confidence my friends call it.
-Poe
 
What does "... no longer works ..." mean?

It returns no records?
It errors?
It returns the wrong records?
 
I did a compact and repair on the back-end. Thank you
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top