Connecting Tech Pros Worldwide Forums | Help | Site Map

Selecting From A N Access Database - Rows Missing

Newbie
 
Join Date: Aug 2008
Posts: 2
#1: Sep 1 '08
Hei,
I have an Access database with a querry containing 40,000 rows.
When I use "SELECT (*) COUNT FROM Querr" in ExecuteScalar, I get only about half of the rows. However, whem I copy the contents of the querry to a Table, a get the full 40,000 number of rows.
Any suggestions?
Best regards,
Tom

kenobewan's Avatar
Moderator
 
Join Date: Dec 2006
Posts: 4,745
#2: Sep 1 '08

re: Selecting From A N Access Database - Rows Missing


Try "SELECT COUNT(QuerrID) FROM Querr". HTH.
Newbie
 
Join Date: Aug 2008
Posts: 2
#3: Sep 1 '08

re: Selecting From A N Access Database - Rows Missing


Quote:

Originally Posted by kenobewan

Try "SELECT COUNT(QuerrID) FROM Querr". HTH.

Thanks for your suggestion. I tried it, but it had no effect. I will try to use the same SQL statement that Access uses to generate the Querry. Hopefully, that will work netter.
Reply