ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Pass text 255 char. to closed wkb with SQL? (https://www.excelbanter.com/excel-programming/347780-pass-text-255-char-closed-wkb-sql.html)

DB

Pass text 255 char. to closed wkb with SQL?
 
I'm using ADO ref 2.7 within Excel where I write SQL statements. I have an
Excel userform with a textbox where a user may key a long description. I
assign the text to a variable in my SQL INSERT statement to add the record to
a worksheet in a closed workbook. When the user keys a description longer
then 255 characters, I receive an error. I know Excel can hold mor than 32k
characters in a cell, how can I
pass my users long description using SQL?

Please help,


Tim Williams

Pass text 255 char. to closed wkb with SQL?
 
Try this
http://www.dnzone.com/ShowDetail.asp?NewsId=234

Tim

"DB" wrote in message
...
I'm using ADO ref 2.7 within Excel where I write SQL statements. I
have an
Excel userform with a textbox where a user may key a long
description. I
assign the text to a variable in my SQL INSERT statement to add the
record to
a worksheet in a closed workbook. When the user keys a description
longer
then 255 characters, I receive an error. I know Excel can hold mor
than 32k
characters in a cell, how can I
pass my users long description using SQL?

Please help,





All times are GMT +1. The time now is 05:24 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com