Cannot join on Memo, OLE, or Hyperlink Object

前端 未结 4 1065
醉梦人生
醉梦人生 2021-01-27 21:18

I have a basic table in an Access database. In that table, I have a 10-digit numeric field that is stored as Long Text (leading zeros are significant). I extracted the unique

相关标签:
4条回答
  • 2021-01-27 21:26

    You just have to convert the longtext to shorttext and the join will work

    0 讨论(0)
  • 2021-01-27 21:28

    Use ANSI JOIN instead. It worked for me using

            SELECT A.A, B.B, C.C
               FROM aaa AS A, bbb AS B, ccc AS C
           WHERE A.B = B.ID
                AND B.C = C.ID
    
    0 讨论(0)
  • 2021-01-27 21:29

    Access does not allow Joins based on Long Text fields. That's the "memo" it is referring to. I assume Microsoft's rationale is that basing a Join on a paragraph of text is unreasonable.

    More here: https://kb.tableau.com/articles/issue/error-cannot-join-on-memo-ole-or-hyperlink-object-when-joining-access-tables

    0 讨论(0)
  • 2021-01-27 21:50

    Try to convert the 10 digits numeric field stored as long text to short text. long text is for the memo that's why you're getting this error.

    I had the same error resulting from LEFT JOINING a msSQLserver table view ON a local msAccess table, the field datatype was nvarchar(80000) in SQL server table and was auto-converted into Memo datatype when linked to msAcces so I had to convert it to nvarchar(25) from SQL server and refresh the table link to solve the issue.

    0 讨论(0)
提交回复
热议问题