Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default ADO help: Only get first 255 characters of field...

Hi,

can somebody help with this?

I have an Access database, that has a table with a memo field in it.
This table contains
records longer than 255 characters.

I am using ADO to get this info out of the database into a recordset,
and then loop through the
recordset to populate a spreadsheet.

However, I only get the first 255 characters for the data that comes
from the memo field.

How do I get the entire value stored in the database?

Somebody mentioned using "adLongVarWChar". But how do I do this?

Please help,

Thanks,


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 523
Default ADO help: Only get first 255 characters of field...

Make sure that the memo field is the last field selected in your SQL
statement/the last field in the table.

Sam

" wrote:

Hi,

can somebody help with this?

I have an Access database, that has a table with a memo field in it.
This table contains
records longer than 255 characters.

I am using ADO to get this info out of the database into a recordset,
and then loop through the
recordset to populate a spreadsheet.

However, I only get the first 255 characters for the data that comes
from the memo field.

How do I get the entire value stored in the database?

Somebody mentioned using "adLongVarWChar". But how do I do this?

Please help,

Thanks,



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default ADO help: Only get first 255 characters of field...

On 8 May, 14:44, Sam Wilson
wrote:
Make sure that the memo field is the last field selected in your SQL
statement/the last field in the table.

Sam



" wrote:
Hi,


can somebody help with this?


I have an Access database, that has a table with a memo field in it.
This table contains
records longer than 255 characters.


I am using ADO *to get this info out of the database into a recordset,
and then loop through the
recordset to populate a spreadsheet.


However, I only get the first 255 characters for the data that comes
from the memo field.


How do I get the entire value stored in the database?


Somebody mentioned using "adLongVarWChar". But how do I do this?


Please help,


Thanks,- Hide quoted text -


- Show quoted text -


I have tried this, but it still truncates the field.


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
how do I use only 2 characters in a field in a formula rgarner Excel Worksheet Functions 2 December 1st 09 03:15 PM
Looking for alpha characters in a field fgwiii[_2_] Excel Worksheet Functions 1 September 17th 08 12:41 PM
automatically copy first 12 characters in one field to another? JFletcher Excel Programming 2 December 12th 05 09:43 PM
Removing characters from datetime field Sujesh Excel Discussion (Misc queries) 3 July 14th 05 03:22 PM
need to remove last few characters from data in field Patience Excel Programming 2 February 11th 05 04:19 PM


All times are GMT +1. The time now is 07:16 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"