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

  • Home
  • SEARCH
  • 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 8285181
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T11:24:09+00:00 2026-06-08T11:24:09+00:00

In Microsoft Access, I have two linked tables which I can’t change the structure

  • 0

In Microsoft Access, I have two linked tables which I can’t change the structure of.

One of these tables contains an ID in integer format, the other contains the same ID, but in string format.

I want to join on these fields, but, obviously, MS Access isn’t letting me.

Is there a way, possibly using casting or something similar to create this join?

Thanks

  • 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-08T11:24:11+00:00Added an answer on June 8, 2026 at 11:24 am

    If ID is autonumber in t1 and text in t2, you can use CLng() in the ON expression to transform t2.ID to long integer.

    SELECT *
    FROM
    t1 INNER JOIN t2
    ON t1.ID = CLng(t2.ID);
    

    Or you could use Val() instead of CLng() for other ID numeric types.

    I’m not sure how well the query designer will cooperate with this in Design View, but you can do it in SQL View.

    OTOH, you may prefer to create a separate query, “qryT2”, for t2 which transforms the text ID to numeric.

    SELECT CLng(ID) AS numeric_ID, t2.*
    FROM t2;
    

    Then you could substitute qryT2 for t2 in the first query, and have one which the query designer finds to be more congenial.

    SELECT *
    FROM
    t1 INNER JOIN qryT2 
    ON t1.ID = qryT2.numeric_ID;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a Microsoft Access database and I have two tables. Table1 has a
I have two tables and a form in a Microsoft Access Database. Lets the
I have a Microsoft Access form that is bound to a linked SQL Server
I have an Access DB which contains a lot of people with Korean names.
I have three tables in Microsoft Access. I have a query that joins the
I have two Microsoft SQL Server 2000 databases, and a stored procedure on one
i dont have microsoft access but would like to open an mdb file, is
I have a Microsoft Access Database with an interface for usability ... But now,
I have a Microsoft Access database and there is a macro there. How do
I have a set of records in Microsoft Access that I am trying to

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.