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 172453
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T13:10:08+00:00 2026-05-11T13:10:08+00:00

I have two Access 2003 databases ( fooDb and barDb ). There are four

  • 0

I have two Access 2003 databases (fooDb and barDb). There are four tables in fooDb that are linked to tables in barDb.

Two questions:

  • How do I update the table contents (linked tables in fooDb should be synchronized with the table contents in barDb)
  • How do I re-link the table to a different barDb using ADO.NET

I googled but didn’t get any helpful results. What I found out is how to accomplish this in VB(6) and DAO, but I need a solution for C#.

  • 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. 2026-05-11T13:10:08+00:00Added an answer on May 11, 2026 at 1:10 pm

    If you’re coding in C#, then Access is not involved, only Jet. So, you can use whatever method you want to access the data and then code the updates.

    I’ve coded this kind of thing in Access many times, and my approach for each table is:

    1. run a query that deletes from fooDB that no longer exist in barDB.

    2. run a query that inserts into fooDB records that are in barDB that do not yet exist in fooDB.

    3. I always use code that writes on-the-fly SQL to update the fooDB table with the data from barDB.

    The 3rd one is the hard one. I loop through the fields collection in DBA and write SQL on the fly that would be something like this:

    UPDATE table2 INNER JOIN table1 ON table2.ID = table1.ID SET table2.field1=table1.field1 WHERE (table2.field1 & '') <> (table1.field1 & '') 

    For numeric fields you’d have to use your available SQL dialect’s function for converting Null to zero. Running Jet SQL, I’d use Nz(), of course, but that doesn’t work via ODBC. Not sure if it will work with OLEDB, though.

    In any event, the point is to issue a bunch of column-by-column SQL updates instead of trying to do it row by row, which will be much less efficient.

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

Sidebar

Related Questions

I have an Access 2003 database using MS-JET linked tables (that is, there are
I am writing my first little Access 2003 application. I have two queries that
I have two table in Access, Employee and Dept. In Employee table there is
I have two tables in MS Access. Table 1: users ID (auto int) Name
I have two servlets that access two corresponding Axis2 web services on the same
I have two different modules that need access to a single file (One will
Say we have two tables in an MS Access db: Service Users: | ID
I have a group of CFC's that I access from two seperate Applicaiton scopes.
I have an MS Access 2003 Database with more than 60 tables and 120,000
We have a bunch of VB6 applications that access two different database servers (both

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.