PC Review


Reply
Thread Tools Rate Thread

Data corruption problem Access03

 
 
Curmudgeon
Guest
Posts: n/a
 
      5th Nov 2008
I have a table with several memo fields that display the entered data
correctly; queries on the table also display the returned data
correctly. I can copy and past the data from the fields into notepad,
and it displays there correctly as well.

However, when I write the data to a text file (Print #1, qry!
[FieldName]) the first 255 characters are rendered correctly, but all
characters beyond 255 are garbled (question marks, undefined
characters such as ANSI 0, 1, [Space] 32, and a couple of stray alpha
characters).

I have used this technique in other applications for many years with
no problem, and this one is stumping me.

Any suggestions?

Thanks
Dave
 
Reply With Quote
 
 
 
 
Allen Browne
Guest
Posts: n/a
 
      6th Nov 2008
How are you exporting the data?

If you OpenRecordset and loop through the data, it could be this issue:
Concatenated fields yield garbage in recordset
at:
http://allenbrowne.com/bug-16.html

If the query truncates, it could be this:
Truncation of Memo fields
at:
http://allenbrowne.com/ser-63.html

If the query contains a GROUP BY clause, it could be this:
Grouping by Memo field yields garbage
at:
http://allenbrowne.com/bug-18.html


--
Allen Browne - Microsoft MVP. Perth, Western Australia
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"Curmudgeon" <(E-Mail Removed)> wrote in message
news:37c30b06-21b3-4e2f-a677-(E-Mail Removed)...
>I have a table with several memo fields that display the entered data
> correctly; queries on the table also display the returned data
> correctly. I can copy and past the data from the fields into notepad,
> and it displays there correctly as well.
>
> However, when I write the data to a text file (Print #1, qry!
> [FieldName]) the first 255 characters are rendered correctly, but all
> characters beyond 255 are garbled (question marks, undefined
> characters such as ANSI 0, 1, [Space] 32, and a couple of stray alpha
> characters).
>
> I have used this technique in other applications for many years with
> no problem, and this one is stumping me.
>
> Any suggestions?
>
> Thanks
> Dave

 
Reply With Quote
 
Curmudgeon
Guest
Posts: n/a
 
      6th Nov 2008
On Nov 5, 9:10 pm, "Allen Browne" <AllenBro...@SeeSig.Invalid> wrote:
> How are you exporting the data?
>
> If you OpenRecordset and loop through the data, it could be this issue:
> Concatenated fields yield garbage in recordset
> at:
> http://allenbrowne.com/bug-16.html
>
> If the query truncates, it could be this:
> Truncation of Memo fields
> at:
> http://allenbrowne.com/ser-63.html
>
> If the query contains a GROUP BY clause, it could be this:
> Grouping by Memo field yields garbage
> at:
> http://allenbrowne.com/bug-18.html
>
> --
> Allen Browne - Microsoft MVP. Perth, Western Australia
> Tips for Access users -http://allenbrowne.com/tips.html
> Reply to group, rather than allenbrowne at mvps dot org.
>
> "Curmudgeon" <eht...@gmail.com> wrote in message
>
> news:37c30b06-21b3-4e2f-a677-(E-Mail Removed)...
>
> >I have a table with several memo fields that display the entered data
> > correctly; queries on the table also display the returned data
> > correctly. I can copy and past the data from the fields into notepad,
> > and it displays there correctly as well.

>
> > However, when I write the data to a text file (Print #1, qry!
> > [FieldName]) the first 255 characters are rendered correctly, but all
> > characters beyond 255 are garbled (question marks, undefined
> > characters such as ANSI 0, 1, [Space] 32, and a couple of stray alpha
> > characters).

>
> > I have used this technique in other applications for many years with
> > no problem, and this one is stumping me.

>
> > Any suggestions?

>
> > Thanks
> > Dave


Allen,
While the problem was not exactly as described in your pages, I
examined my queries and found that calculations being done on the memo
fields were causing the truncation; apparently due to some Jet quirk
the text in excess of 255 characters gets passed on, but with
incorrect character codes.

I am now using my query to append the records to a temp table, which
then serves as the recordsource for my code - works like a charm.

Thanks for the suggestions!
Dave
 
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
Access03 in Vista ChoonBoy Microsoft Access Form Coding 3 27th May 2008 08:52 PM
Is it possible to collect data through emails in Access03 like in Casy Microsoft Access 2 23rd Jan 2008 04:44 AM
facing problem of data corruption while porting data from windows 2000 to windows XP amruta Windows XP General 1 13th Aug 2006 12:35 AM
Running Access97 Pgm. in Access03 =?Utf-8?B?Ui5ELkgu?= Microsoft Access 17 26th Dec 2005 06:25 PM
access03/frontpage03 =?Utf-8?B?YWxleGE=?= Microsoft Access Getting Started 0 11th May 2005 10:38 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:20 AM.