PC Review


Reply
Thread Tools Rate Thread

ADO help: Only get first 255 characters of field...

 
 
zqureshi120@googlemail.com
Guest
Posts: n/a
 
      8th May 2008
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,


 
Reply With Quote
 
 
 
 
Sam Wilson
Guest
Posts: n/a
 
      8th May 2008
Make sure that the memo field is the last field selected in your SQL
statement/the last field in the table.

Sam

"(E-Mail Removed)" 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,
>
>
>

 
Reply With Quote
 
zqureshi120@googlemail.com
Guest
Posts: n/a
 
      9th May 2008
On 8 May, 14:44, Sam Wilson <SamWil...@discussions.microsoft.com>
wrote:
> Make sure that the memo field is the last field selected in your SQL
> statement/the last field in the table.
>
> Sam
>
>
>
> "zqureshi...@googlemail.com" 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 With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Tab characters in XE field Ben Microsoft Word Document Management 5 10th Dec 2008 06:56 PM
Creating a field based on 2 characters from Field 1 and an auto nu =?Utf-8?B?TXNSZWVjZQ==?= Microsoft Access Database Table Design 1 26th Nov 2006 01:31 AM
Memo field changes characters to foreign characters =?Utf-8?B?c2tr?= Microsoft Access Queries 2 1st Nov 2006 02:43 PM
create new field with first 9 characters of old field =?Utf-8?B?bGlscHVydmlzNzU=?= Microsoft Access 1 9th Nov 2004 10:44 PM
How do I could characters in a field? Russell Farr Microsoft Access VBA Modules 2 15th Oct 2003 03:11 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:28 AM.