I am working on an application that integrates with another app that
exposes its database thru ADODB. I can get a recordset without any
trouble, but I get a strange error when I call db.sort = "field".
The error is:
An unhandled exception of type
'System.Runtime.InteropServices.COMException' occurred in dbtest.exe
Additional information: Relate, Compute By, and Sort operations cannot
be performed on column(s) whose defined size is unknown or too large.
I have googled, and checked out MSDN to no avail. The only additional
info I have is that the field I am trying to sort by is defined as
LongVarChar. Is it not possible to sort by this field type? Is there
any way around this problem?
Thanks for your insight.
Cindy M. - 25 Nov 2006 11:44 GMT
The ADO newsgroup is the better place to ask this question. It would
probably help them if you can post the connection string and database
type.
http://msdn.microsoft.com/newsgroups/default.aspx?dg=microsoft.public.da
ta.ado&lang=en&cr=US
> I am working on an application that integrates with another app that
> exposes its database thru ADODB. I can get a recordset without any
[quoted text clipped - 12 lines]
> LongVarChar. Is it not possible to sort by this field type? Is there
> any way around this problem?
Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 17 2005)
http://www.word.mvps.org
This reply is posted in the Newsgroup; please post any follow question
or reply in the newsgroup and not by e-mail :-)