Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Community Forums
 Code Support: ASP (Non-Forum Related)
 Text and Date
 New Topic  Topic Locked
 Printer Friendly
Previous Page
Author Previous Topic Topic Next Topic
Page: of 3

kolucoms6
Average Member

845 Posts

Posted - 09 May 2007 :  09:20:00  Show Profile
You are Right but my concern is that when i run

"SELECT count (*) AS somemeaningfulname FROM table WHERE <condition>"

in our access query manager I get few records but when I run the same through ASP, its ZERO records.

pdrg : If not ADO, then what ?

Edited by - kolucoms6 on 09 May 2007 09:20:27
Go to Top of Page

AnonJr
Moderator

United States
5768 Posts

Posted - 09 May 2007 :  09:46:05  Show Profile  Visit AnonJr's Homepage
Access (the front-end app. that comes as a part of the Office Suite) makes some assumptions about what it thinks you really wanted, so it returns the records. When you use a SQL command like COUNT it returns the results, not a bunch of records. That is why you are seeing the difference.

Just FYI, Access does this sort of stuff a lot. It makes assumptions about what it thinks you wanted, and not what you really wanted. Its a good thing and a bad thing. And really confusing if you don't know that its doing that.
Go to Top of Page

kolucoms6
Average Member

845 Posts

Posted - 09 May 2007 :  09:53:24  Show Profile
:-)
Go to Top of Page

pdrg
Support Moderator

United Kingdom
2897 Posts

Posted - 09 May 2007 :  10:40:56  Show Profile  Send pdrg a Yahoo! Message
quote:
Originally posted by kolucoms6
pdrg : If not ADO, then what ?



Nothing - I've been away from 'the coding edge' for that long!
Go to Top of Page
Page: of 3 Previous Topic Topic Next Topic  
Previous Page
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.26 seconds. Powered By: Snitz Forums 2000 Version 3.4.07