Results 1 to 12 of 12
  1. #1
    fdormoy is offline Novice
    Windows XP Access 2003
    Join Date
    Nov 2011
    Posts
    14

    Can't change Binary format to Text

    I have Microsoft Access 2003 and a table with over 1 million rows and 980 meg file size.
    This table as a field created in Binary format and I want to change it in Text format, but it wont let me do it. I get the message ".. cant change the data type - There is not enough disk space or memory". This is not true, I have plenty of disk space and 8 Gb RAM. So how can I sole this problem ?

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,931
    Binary is not an Access field datatype. Unless you mean Yes/No datatype. What is the datatype of this field?

    Google: VBA convert binary to text
    http://thydzik.com/vb6vba-functions-...base64-string/
    http://www.go4expert.com/forums/showthread.php?t=118
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    boblarson is offline --------
    Windows 7 64bit Access 2010 32bit
    Join Date
    Jun 2011
    Posts
    1,272
    Quote Originally Posted by fdormoy View Post
    ...and 980 meg file size.
    Is that AFTER running COMPACT AND REPAIR?

  4. #4
    fdormoy is offline Novice
    Windows XP Access 2003
    Join Date
    Nov 2011
    Posts
    14
    Anser to first remark : It does show in table design mode that the columns are in Binary. So Binary format do exist and/or are created within Access.

    Answer to the second remark : Yes of course I did a Compact and Repair before and it did not help

    My comment : I just found a solution whch is to create extra columns which are in text format and with a query update fill in that new column with the same value as the old column which is in binary and then erase the old column. It works !!

  5. #5
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,931
    I don't see 'Binary' offered as a datatype choice in table design for Access 2007 and 2010.

    Glad you found solution.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  6. #6
    fdormoy is offline Novice
    Windows XP Access 2003
    Join Date
    Nov 2011
    Posts
    14
    ou are right for these versions, but I am still working with the old Access 2003 version (as I said in my first post) and may be that old version has this format capability

  7. #7
    fdormoy is offline Novice
    Windows XP Access 2003
    Join Date
    Nov 2011
    Posts
    14
    Well, several years passed since my last thread, and I am now using Access 2010, and I have the same problem, when importing a table from one base to another, it transforms certain text columns of the first base into Binary in the new base.
    Having to create new field and transform each of these binary fields into text is time consuming every time I want to import tables. Can someone tell me if a solution to this problem was found since 2011 ?

  8. #8
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,931
    Can you provide data for analysis and testing? Follow instructions at bottom of my post.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  9. #9
    fdormoy is offline Novice
    Windows XP Access 2003
    Join Date
    Nov 2011
    Posts
    14
    Hello,

    The problem is that all this data is confidential. If I only give you a sample, of course you will not have the same problem as having the full 0.7 gig file. Furthermore, if the download is limited to 2 mb in zipped format, I would not go very far in data size and this would be useless. I would need to know the exerience of other people having faced the same problem and how they managed to solve it.

  10. #10
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,931
    Possible options:

    1. Create a text field in table and UPDATE it with the value from the original field, delete original field.

    2. Test changing the field type with smaller dataset or no data. Make a copy of db and delete most or all records. Are you now able to change data type? Can you now import records from the original db?
    Or copy the table in the original db (structure only) and try to change data type. Import records. Delete original table. Rename new table.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  11. #11
    ssanfu is offline Master of Nothing
    Windows XP Access 2000
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664
    I'm curious......

    I found this site: http://msdn.microsoft.com/en-us/libr...ice.11%29.aspx
    that has a note at the bottom of the page:
    "Microsoft Access itself doesn't use the BINARY data type. It's recognized only for use in queries on linked tables from other database products that support the BINARY data type."

    when importing a table from one base to another, it transforms certain text columns of the first base into Binary in the new base.
    SQL server does have a Binary field format. So what database are you importing the table from?

    Along that same line, what would the data look like that is in binary format? And the same field in text format?

  12. #12
    fdormoy is offline Novice
    Windows XP Access 2003
    Join Date
    Nov 2011
    Posts
    14
    Well, my question s : why Access creates a data format that it does not support ? Why, when importin a table from another database, it transforms some text fields into binary ?
    Anyway, what I did was to use option 1 proposed by June7.

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

Similar Threads

  1. How to Change Date Format
    By bulbul4u in forum Queries
    Replies: 1
    Last Post: 04-01-2011, 03:02 PM
  2. Change field format
    By zhshqzyc in forum Access
    Replies: 6
    Last Post: 01-20-2011, 04:07 PM
  3. Can i change the format of DATE () ?
    By Nokia N93 in forum Access
    Replies: 2
    Last Post: 11-27-2010, 01:34 PM
  4. Replies: 6
    Last Post: 04-18-2010, 03:41 AM
  5. Text Box Format
    By Scott in forum Forms
    Replies: 0
    Last Post: 01-09-2008, 11:13 PM

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