Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2005 Forums
 Transact-SQL (2005)
 ADODB recordset (Err: -2147217913 - Data type)

Author  Topic 

agniwoni
Starting Member

28 Posts

Posted - 2007-07-24 : 05:42:42
I use VBA for Access to access data from SQL SRV 2k.

Visual Basic statement that fails is:
Sql = "Select * from " & ReportName
rs.Open Sql, cn

Rs declaration, and all other neccessary stuff are ok.
When i use the same string (Sql) in query analiser it works well

For row source I use view, defined as a combination of 2 other views, where I use some sums/cases/stuff.

And the error:
"-2147217913 the conversion of data type char to datetime produced a value datetime out of interval"

Why, for the love of God, it happened to me?

agniwoni
Starting Member

28 Posts

Posted - 2007-07-24 : 05:46:03
I've read that it might be a collation problem, or the date format.

But... other views works well for this procedure. Even when they contain date fields.

Thanks for any help.
If more info needed please give me a signal.
Go to Top of Page
   

- Advertisement -