Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default How to use ADO to issue query that more than 250 characters?


Hi!

I am using ADO to retrieve data from ACCESS DB. However, my sql is mor
than 250 characters long but the .commandText field in ADODB.Command ca
only take 250 characters. My question is: with use of ADO, how can
issue query that is longer than 250 characters long?

Please help me with this.

Thanks,

Aijun

--
Ai_Jun_Zhan
-----------------------------------------------------------------------
Ai_Jun_Zhang's Profile: http://www.excelforum.com/member.php...fo&userid=2547
View this thread: http://www.excelforum.com/showthread.php?threadid=39596

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,298
Default How to use ADO to issue query that more than 250 characters?

write a query in Access then just execute the query from your ADO


"Ai_Jun_Zhang" wrote:


Hi!

I am using ADO to retrieve data from ACCESS DB. However, my sql is more
than 250 characters long but the .commandText field in ADODB.Command can
only take 250 characters. My question is: with use of ADO, how can I
issue query that is longer than 250 characters long?

Please help me with this.

Thanks,

Aijun.


--
Ai_Jun_Zhang
------------------------------------------------------------------------
Ai_Jun_Zhang's Profile: http://www.excelforum.com/member.php...o&userid=25474
View this thread: http://www.excelforum.com/showthread...hreadid=395967


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 595
Default How to use ADO to issue query that more than 250 characters?

Aijun

I just executed a Command with a CommandText that was 412 characters long.

--
Dick Kusleika
Excel MVP
Daily Dose of Excel
www.dicks-blog.com

Ai_Jun_Zhang wrote:
Hi!

I am using ADO to retrieve data from ACCESS DB. However, my sql is
more than 250 characters long but the .commandText field in
ADODB.Command can only take 250 characters. My question is: with use
of ADO, how can I issue query that is longer than 250 characters long?

Please help me with this.

Thanks,

Aijun.



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Wen Query Issue Hans Excel Discussion (Misc queries) 6 December 11th 08 07:39 PM
Query and/or 3D Referencing Issue BonnieRone Excel Discussion (Misc queries) 0 January 6th 06 06:01 PM
counting characters issue vipa2000 Excel Worksheet Functions 5 July 28th 05 10:45 AM
ms query xp issue quaoar Excel Programming 0 November 23rd 03 08:23 PM
Chart & ms Query issue michanne Excel Programming 0 November 5th 03 06:55 PM


All times are GMT +1. The time now is 09:45 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"