Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recordset Field Size Limit?

Status
Not open for further replies.

dftjsn

Programmer
Feb 25, 2002
43
US
I am creating a recordset from an SQL select statement. The SQL concatenates several fields together to form one long field: Citation. Some citations work out to be greater than 255 characters in length. The SQL statement works and the Citations in the recordset look fine except when the length is greater than 255 characters ... whereupon there is garbage in the record from character 256 on out to its end. Are fields in Recordsets strings and therefore limited to 255 characters? Can the Recordset field length be changed?

Thanks!

dftjsn
 
try using field type memo. junior1544@jmjpc.net
Life is change. To deny change is to deny life.
 
Junior1544,

A field type of memo is not an option as I'm not defining a new table structure. I'm creating a recordset from an SQL select statement. The SQL statement concatenates several table fields into one larger field for the recordset. Unfortunately, the length of the returned recordset field: rst!Citation is sometimes greater than 255 characters in length which gives me junk after character 255. The rst!Citation.DefinedSize property shows that the citation field length in the recordset is 255.

Anyone have any ideas other than not concatenating into one field (the recordset is for input to another control that can only have one field)?

Thanks!

dftjsn
 
dftjsn,

I have the same problem as you, and was wondering if you've found a solution.

my problem is where i load an excel field into a recordset object in asp. the fields larger than 255 characters get cut off. let me know if you've found a solution!

thanks.
 
I need to create a form.recordsource from an SQL string that is longer than 255 chars. Apparently form.recordsource cannot be longer than 255??

Is there a way to create a recordset from the SQL statement and then use this as te recordsource for a form?

Thanks
drat242
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top