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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ActualSize > Defined Size in ADO recordset

Status
Not open for further replies.

Eno25

Programmer
Nov 10, 2004
9
0
0
GB
Hi there - not sure if I should be posting this here or in the Office group...

I'm having a problem with importing data from excel using ADO.

I successfully pull in data from a spreadsheet supplied by externals into the ADODB.recordset rsVals.

rsVals("SummaryDescription") is a text field.

My Problem is rsVals("SummaryDescription").DefinedSize = 255
whereas
rsVals("SummaryDescription").ActualSize = 760

Predictably, this means I'm getting garbage.

Does anyone know of a workaround for this? Also, let me know if I'm better off posting in another group!

Thanks for your help!

Kevin
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top