Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8150157
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T14:59:46+00:00 2026-06-06T14:59:46+00:00

I have two fields in separate linked tables with the same data, but different

  • 0

I have two fields in separate linked tables with the same data, but different data types. I can’t change the datatypes in the tables. I am trying a query that joins the two tables together based on this data, but since the types are different I need to convert the number to a string. What I have been trying, basically, is this:

...
FROM Table1 LEFT JOIN Table2 ON CStr([Table1].[Column]) = Table2.Column
...

I just keep getting error messages, mostly “Join expression not supported.”

Can anyone shed some light on what I may be doing wrong/what I could do better?

Thank you.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T14:59:47+00:00Added an answer on June 6, 2026 at 2:59 pm

    Here is your FROM clause reformatted:

    FROM
        Table1.Column
        LEFT JOIN Table2.Column
        ON CStr([Table1].[Column]) = Table2.Column
    

    Notice it uses Table1.Column and Table2.Column as the data sources. And those are columns (fields), not tables (real or virtual).

    Try it this way instead:

    FROM
        Table1
        LEFT JOIN Table2
        ON CStr([Table1].[Column]) = Table2.Column
    

    Access’ query designer has trouble dealing with with JOINs which include functions in the ON expression. Although I don’t see evidence that is confusing the issue in your question, I’ll suggest you rule out that possibility by pasting the following statement into the Immediate window and executing it there.

    Set rs = CurrentDb.OpenRecordset( _
    "SELECT Count(*) AS row_count" & vbCrLf & _
    "FROM Table1 AS t1" & vbCrLf & _
    "LEFT JOIN Table2 AS t2" & vbCrLf & _
    "ON CStr(t1.[Column])=t2.[Column];") : _
    ? rs(0) : _
    rs.Close : _
    Set rs = Nothing
    

    Notice each of those line continuation characters (underscore, “_”) must be preceded by a space and have no characters after.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a query which searches two separate fields in the same table... looking
I'm trying to update two fields of several rows at once but I can't
I have two fields which calculate a total, but I have a radio button
I have two fields: string date1 = 04/26/10; string date2 = 04/25/10; How can
I have two separate websites on the same server. One site is a forum
Say if I have two different types of sensors: one monitors analog voltage (such
Is there anyway to combine rows inside of two separate Matrix fields? I have
I have two tables with hierarchyid fields, one of which is a staging table
I have two separate fields with a drop-down list, one is for User and
I have two similar tables table_a and table_b table_a is my current data and

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.