Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / ActiveX Controls / December 2005

Tip: Looking for answers? Try searching our database.

ADO - returning different results rather then Query analyzer !!!

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Daniel - 27 Dec 2005 11:00 GMT
Hi,

very strange thing happend today:
I wrote an sql syntax to query a sql server database:
"Select Count(*) From dbo.Func1() Where SomeCriteria"
From the sql server query analyzer i got results as a nameless column having
the value of 1

I took the SAME sql syntax and opend an ADO.Recordset using VB:

Dim Tmp as ADODB.Recordset
Tmp.Open "Select Count(*) From dbo.Func1() Where SomeCriteria",
CurrentProject.Connection, adOpenStatic, adLockReadOnly

I checked the value of Temp.Fields.Item(0) and it is now = 0 !!!

Cannot figure this out....

This is an Access XP file (.ADP) referencing the msado15.dll (ActiveX Data
Objects 2.8)

Ideas anyone ?
Douglas J. Steele - 27 Dec 2005 13:07 GMT
What does SomeCriteria contain? (it may matter...)

Signature

Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no e-mails, please!)

> Hi,
>
[quoted text clipped - 19 lines]
>
> Ideas anyone ?
Daniel - 27 Dec 2005 21:01 GMT
SomeCriteria refers to a date column - RemindDate <='01/01/2005'
and it's the same on both querys.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.