473,385 Members | 1,893 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Access Reconcile Two Tables

In Access 2000, I have two tables that need to be reconciled.

One is an imported table called "Orders" (which cannot be changed):
OrderNumber | Customer
A | AAA
B | BBB
C | CCC
D | DDD
E | EEE
F | FFF
G | GGG

The other is a table internal to the Access project called "tblOrderStatus"
OrderNumber | Status
B | abc
D | def
G | ghi
J | jkl
L | mno

In my frmStatusUpdate form, at Form_Load(), I would like to compare the two tables, remove any records from tblOrderStatus that do not share an OrderNumber with the "Orders" table, and add any records that do not exist already. The desired output after the Form_Load() would be:

tblOrderStatus:
Order Number | Status
A |
B | abc
C |
D | def
E |
F |
G | ghi

If this is not possible at Form_Load(), then any other method of reaching this result will suffice.

I have tried doing this through a query with the join property to include ALL "Orders", and matching "tblOrderStatus", but this does not allow me to add records to tblOrderStatus to account for new additions to the "Orders" table.

Thank you for the help!
Apr 5 '10 #1
1 3984
I figured this one out by combining a few other answers on the site. Thank you everyone for the support.
Apr 5 '10 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Ian Davies | last post by:
Hello Does mysql allow you to restrict users access to spcecific tables while allowing access to others. I cant seem to find anything in the manual related to this Ian
5
by: Jay McGrath | last post by:
Does anyone know if it is possible to prevent a user from accessing the tables in an MDE file? I can go to my start-up menu and limit access to various functions, etc. I could even disable the...
5
by: David Powell | last post by:
I have a database that was created by a member of my staff and he seems to have protected it so that only a form displays when the database is open. I need to ammend the database and add records...
1
by: Johnny Meredith | last post by:
Dear All, I have an Access database that tracks the progress of income tax audits. When the taxing authorities make a change (an "Adjustment"), I record the pertinent information in the...
3
by: Marcel | last post by:
Hi, I'm not shure if this is the right forum but the core program is VB.NET. So, my question is: can I create, open, read and write Access.mdb tables even if the user for which I'm writing a...
17
by: aquablade | last post by:
I have an Oracle 10g R2 database where my ERP transactions reside. I'm using MS Access to grant access to my power users where I use MS Access' Link Tables to provide direct access. I noticed that...
3
by: zgh1970 | last post by:
Hi, Friiends, I am db2 UDB DBA on aix. nickname to access the tables on db2/390. For the security ,we can use user mapping for for the federation serse. All the setting federation server,nickname...
3
by: Bret Kuhns | last post by:
I recently started a co-op/internship at a company and they are looking to migrate a large legacy supported application from OLEDB to SQL Server. I'm doing prelim work in experimenting with the...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.