Cannot perform JOINs when querying from Microsoft Access

Microsoft Access does consider Varchar types with a size greater than 255 as Memo objects. However, Memo objects cannot be used as JOIN conditions. In such scenarios the query will fail with the following error: “Cannot JOIN on Memo, OLE or Hyperlink Object”.

Depending on the provider you are using and your use case, there are a few options that would solve the issue:

  • Setting the DefaultColumnSize=255 in the Other connection property. This property will limit all column sizes to a maximum of 255 characters.

  • Modifying the datatype size via custom schemas.

  • Using Access passthrough mode.

Additional details regarding enabling pass-through mode in Access can be found on the following link:

Create a pass-through query

1 Like