If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > Delphi, C etc > SELECT Query returns only 255 chars

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 08-28-04, 12:13
jhcaiced jhcaiced is offline
Registered User
 
Join Date: Aug 2004
Posts: 1
SELECT Query returns only 255 chars

I am having trouble with an application, using VB6 and ADO to access an
mdb file.

The table has 3 text fields with 255 chars length each, when I do a query
of the following form:

SELECT F1 & F2 & F3 FROM Table

The result is a recordset, but only the first 255 chars are returned.

Anybody knows the reason of this behaviour or can give me an idea
of what to do.

I am concatenating the fields since the result is being used by a Spread7
control.
Reply With Quote
  #2 (permalink)  
Old 08-28-04, 16:40
SCIROCCO SCIROCCO is offline
Registered User
 
Join Date: Mar 2004
Location: www.scirocco.ca
Posts: 346
It is because the String field can only take 255 characters. The 3 concatenated together make a string field. If you want them all use a memo field and then you will get the desired result.
__________________
http://www.scirocco.ca/images/banner...occobanner.gif

Download for FREE the ADO/DAO Data Controls that makes life EASIER developing database applications in: VB, FoxPro, Access, VC++, .NET etc... Navigate, Add New, Delete, Update, Search, Undo and Save your changes. Supports Disconnected Recordsets and Transactions!

Or try our Ask An Expert service to answer any of your questions!
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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