Lets say I have a querry having the following two fields.
Select StudentID, Concatenate(".." & StudentID & "...")
As StudentInformation.
Concatenate function gets other information for a
particular "studentID" from 3 other tables. In the VBA
Concatenate function is declared as type "String". The
result of concatenate function is about 3000 char in
length.
After the query finishes runing, i see that concatenate
function is returning only 255 characters. But inside the
concatenate function I used a "Msgbox" to see how the
result string is being built dynamically and its
returning more than 255 characters, perfectly as I
expected. But after the querry has run the concatenate
functions is returning only 255 characters.
I tried to import the querry results as table using "File-
Get External Data->querries(with get querries as table,
option, selected)". In the design mode of the table I see
the field "StudentInformation" is of data type "Text" of
255 char len.
Do i need to declare the function "Concatenate" as a
different type in the VBA.
Do i need to change the change the format of the querry
for field "StudentInformation"
Please help.
-----Original Message-----
AFAIK, computers can't recognize such concepts
as "infinity" - everything has a length. A variable of
subtype string can have up to 2 billion characters in it,
depending on what version of VBScript you use.
If that doesn't cut it, you can create an array of type
string, so that each element of the array is of subtype
string, which means you've got 2 billion characters per
slot. You'd have to contrive some way to concatenate all
that...but I believe there is a limit to the number of
elements you can have in array. So even that method
would prevent you from having an "infinite" number of
characters.