LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #16   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 593
Default SQL string problem

El Belgio wrote ...

I'm not an Excel specialist, but I work with SAP BW (which uses Excel
as a front end).
I have a similar issue where I need to fill a string with cell
addresses to launch an SAP defined macro. I also noticed that the
String variable is limited (Variant as well by the way).
Isn't there any data type that can take more than 185 characters in
VB?


What are we talking about here?

I had a look in my archive of recently executed queries and the
largest is 2573 characters. I've never had a problem with SQL string
length with ADO.

AFAIK, the SQL property is limited in 'QueryTables' (i.e. MS Query)
VBA code to 255 characters and this limit is circumvented by using an
array where each element is within the 255 limit.

If you are talking about the VBA6 native String type, the limit is
2^31 characters (approx 2 billion).

--
 
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
Problem with VB string character limit. AJL Excel Worksheet Functions 0 November 3rd 06 07:40 PM
to search for a string and affect data if it finds the string? Shwaman Excel Worksheet Functions 1 January 11th 06 12:56 AM
string sorting problem NikkoW Excel Programming 1 May 2nd 04 04:59 PM
Create a formula into a String then assign string to a cell Myrna Larson[_2_] Excel Programming 6 August 23rd 03 09:42 PM
Formatting Problem on Double-Zero String Tom Ogilvy Excel Programming 1 July 18th 03 06:56 PM


All times are GMT +1. The time now is 03:00 PM.

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"