Results 1 to 14 of 14
  1. #1
    mfreedman is offline Novice
    Windows 10 Access 2016
    Join Date
    Mar 2018
    Posts
    6

    Chinese gibberish being displayed when viewing data

    Hi there

    This is my first time on here, so please be kind! I'm new to Access but have used an ancient database (Lotus Approach) for client records and notes for 20 years (I am a health professional). I though it was about time I started using a more current package, so am trying to switch to Access 2016 (on Windows 10). I have successfully imported all my data into Access in the DBF IV format. The patient treatment notes are in a long text field, but when you enter the field to scroll and edit/add text, after a short while an error dialog box appears "Invalid Argument" and then all the text appears to turn to wingdings (or some other peculiar font) - see screenshot.



    I've tried compacting/repair the database and changing the form of the form as suggested elsewhere on this forum (it happens in datasheet view as well). I know the data is successfully exported from Lotus Approach as it opens fine in Open Office Base - but I want to use Access as Base seems to run very slowly on my computer.

    Any ideas how to fix this?

    Thanks in advance!
    Attached Thumbnails Attached Thumbnails accessgibberish.jpg  

  2. #2
    Bob Fitz's Avatar
    Bob Fitz is offline Access Developer
    Windows 7 32bit Access 2013
    Join Date
    May 2011
    Location
    Essex UK
    Posts
    3,544
    Welcome to the forum

    The field that is bound to "Treatment 2" would need to be of "Memo" type. Check its properties in the bound table.

    B.T.W.
    I noticed Woodford Green on your screen shot. I used to live there when I was younger. (Much younger )
    If this helped, please click the star at the bottom left of this posting and add to my reputation . Many thanks.
    Bob Fitzpatrick

  3. #3
    mfreedman is offline Novice
    Windows 10 Access 2016
    Join Date
    Mar 2018
    Posts
    6
    Thanks Bob
    Doesn't help though! The field is designated "long text", which I understand was formerly known as "memo" field in earlier versions. The gibberish kicks in after about 500 characters.
    P.S. I have a lot of clients in Woodford Green, as I am based in Chingford. Nice bit of the world!
    Any other ideas?
    Many thanks
    Mark

  4. #4
    isladogs's Avatar
    isladogs is offline MVP / VIP
    Windows 10 Access 2010 32bit
    Join Date
    Jan 2014
    Location
    Somerset, UK
    Posts
    5,978
    Unfortunately, this is often due to data being corrupted.
    You may be able to recover it by decompiling your database.
    See http://www.fmsinc.com/MicrosoftAcces.../Decompile.asp

    Make a copy before you start....just in case
    Colin, Access MVP, Website, email
    The more I learn, the more I know I don't know. When I don't know, I keep quiet!
    If I don't know that I don't know, I don't know whether to answer

  5. #5
    orange's Avatar
    orange is online now Moderator
    Windows 10 Access 2010 32bit
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,726
    Further to Colin's advice see this post and you could also try searching the forum for " unwanted chinese characters msaccess" or this allen browne link

  6. #6
    mfreedman is offline Novice
    Windows 10 Access 2016
    Join Date
    Mar 2018
    Posts
    6
    Thanks Colin, I tried decompiling but no luck still!

  7. #7
    isladogs's Avatar
    isladogs is offline MVP / VIP
    Windows 10 Access 2010 32bit
    Join Date
    Jan 2014
    Location
    Somerset, UK
    Posts
    5,978
    Unfortunately that was probably your best chance.
    You can try copying everything into a fresh database but I think the chinese characters will go across as well.

    As an experiment try the following step by step ....

    1. You say you know the export worked as you opened the file in Office Base.
    Did you import from that or direct from Lotus Approach?
    Try importing from the other program

    2. Copy a record from approach into Notepad - does it display correctly?
    If so, copy & paste from there to Access.
    Now look at that record in the table. Increase the height of the record until you can see the whole record
    Does it still look OK?

    3. Open the form in design view and increase width & height of the textbox so you can see the whole record without scrolling.
    Does that record look OK?
    What about the other records?

    3. Can you import using any other format than using DBase?

    4. Are all records scrambled - is it feasible to just re-type the data in Access?
    Colin, Access MVP, Website, email
    The more I learn, the more I know I don't know. When I don't know, I keep quiet!
    If I don't know that I don't know, I don't know whether to answer

  8. #8
    mfreedman is offline Novice
    Windows 10 Access 2016
    Join Date
    Mar 2018
    Posts
    6
    Hi Colin

    Thanks for your input, but still got the problem! To address your suggestions:
    1. I saved it from Base as a DBF again but same problem recurs
    2. Copied into Notepad, the chinese characters did not display, either as chinese or the original. The text appears cut off where the chinese characters were appearing in Access
    3a. Can't realistically increase the size of the text box, some of the text records are just too big for this to be practical
    3b. There are several other file formats Lotus Approach will export in, I've attached a screenshot of them. I've tried text delimited but Access wouldn't work with it (
    4. Theres about 5000 records, so retyping them isn't really an option!

    I've also tried the text delimited option, when I tried it before when I open it in Access there appears to be nothing there! I can ope in Excel (hoped I could get around it that way) but the entries are appearing in the wrong lines, even when I used an unusual character "~" (rather than comma's) to qualify fields.

    Not sure where I can go from here! Thanks for all your help, any other suggestions gratefully received!
    Attached Thumbnails Attached Thumbnails approachformats.jpg  

  9. #9
    isladogs's Avatar
    isladogs is offline MVP / VIP
    Windows 10 Access 2010 32bit
    Join Date
    Jan 2014
    Location
    Somerset, UK
    Posts
    5,978
    Out of interest, do you get 512 characters before its cut off or mangled?

    Have you tried viewing in Notepad++ (free download) which is more powerful than the standard Notepad

    Seems to be some duplication in that list!

    Try exporting a csv file & view that in Excel first.
    If it looks OK, import that as a text file into Access

    Alternatively try exporting as XLS

    What does export as MDB mean? Does it create an MDB file?
    If so you won't be able to open it in access 2016 but I may be able to do so in A2010 depending on which version MDB it is.
    Others here still use A2007 or A2003 so someone may be able to open it for you & then convert to A2016
    Colin, Access MVP, Website, email
    The more I learn, the more I know I don't know. When I don't know, I keep quiet!
    If I don't know that I don't know, I don't know whether to answer

  10. #10
    mfreedman is offline Novice
    Windows 10 Access 2016
    Join Date
    Mar 2018
    Posts
    6
    Hi Colin

    I counted just over 500 characters before it corrupts, so possibly 512. Tried both the csv and xls files and using excel, but the data doesn't display correctly, some of it is split into several line entries rather than just one. I tried using a different delimiter character but still have the same problem.

    I tried a MDB export, but nothing appeared to be exported, maybe that file format isn't working?

    Thanks for all your help though...... I might have to try Apache Office Base instead :-(

  11. #11
    isladogs's Avatar
    isladogs is offline MVP / VIP
    Windows 10 Access 2010 32bit
    Join Date
    Jan 2014
    Location
    Somerset, UK
    Posts
    5,978
    You could try exporting the part that is OK to Word & do a character count (including spaces) if you can be bothered
    Other than working through other export formats, I don't know what to suggest
    Perhaps try TAB separated values if available?

    If you can upload in a format I can look at, I'll try & import into A2010 but unlikely to be successful.
    Is there a forum for Lotus Approach where you might get specific guidance on exporting?
    Colin, Access MVP, Website, email
    The more I learn, the more I know I don't know. When I don't know, I keep quiet!
    If I don't know that I don't know, I don't know whether to answer

  12. #12
    isladogs's Avatar
    isladogs is offline MVP / VIP
    Windows 10 Access 2010 32bit
    Join Date
    Jan 2014
    Location
    Somerset, UK
    Posts
    5,978
    One more thought. Have you tried just linking the dbase table in lotus approach to Access? Is that possible?
    Last edited by isladogs; 03-26-2018 at 10:32 AM.
    Colin, Access MVP, Website, email
    The more I learn, the more I know I don't know. When I don't know, I keep quiet!
    If I don't know that I don't know, I don't know whether to answer

  13. #13
    mfreedman is offline Novice
    Windows 10 Access 2016
    Join Date
    Mar 2018
    Posts
    6
    Thanks for all your help and advice but I think I'm going to give up on Access for now - sorry! I've found a way to do all I need in OpenOffice Base which will suffice. Thanks for trying though, its much appreciated!

    Best wishes

    Mark

  14. #14
    isladogs's Avatar
    isladogs is offline MVP / VIP
    Windows 10 Access 2010 32bit
    Join Date
    Jan 2014
    Location
    Somerset, UK
    Posts
    5,978
    Can't say I blame you for giving up.
    However before you do so, suggest you try linking to the table.
    If that works, you can then use an append or update query to fix your Access table

    It will only take a minute or so to try and if it fails then you're no worse off.
    Colin, Access MVP, Website, email
    The more I learn, the more I know I don't know. When I don't know, I keep quiet!
    If I don't know that I don't know, I don't know whether to answer

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Chinese character and gibberish display in my query
    By wangyun00120 in forum Queries
    Replies: 6
    Last Post: 03-10-2017, 03:41 PM
  2. Viewing data from a query
    By Paranap in forum Access
    Replies: 11
    Last Post: 10-22-2015, 10:17 AM
  3. Data updation & viewing
    By sachin.shelar in forum Forms
    Replies: 1
    Last Post: 10-30-2011, 01:53 AM
  4. Converting/Viewing OLE Data as String...
    By oldgem in forum Access
    Replies: 0
    Last Post: 09-12-2009, 06:35 PM
  5. Trouble viewing correct data
    By KevinH in forum Access
    Replies: 11
    Last Post: 07-06-2009, 07:16 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums