Create Form to add NEW IDs to a table

Posted on 2011-04-18
Last Modified: 2012-05-11
Background Info:
I have one table of orders i append to every week. There is a field called ID which is used to look up the region.
Then I have another table that has 2 fields--- ID and Region.
I then have an update query that links the ID fields in both tables to update the Region field in the 1st table. The region field is manually inputed.

There are new IDs every week and I would like to create some sort of query that would compare the 2 tables, find the new ids from the 1st table and add the new IDs to the 2nd table. Then create a form/popup so that the region field can be inputed into the 2nd table.
Question by:kwarden13
    1 Comment
    LVL 24

    Accepted Solution

    I don't use Access, but assuming it follows standard joins, to determine what in table 1 but not in table 2, you need a left outer join:

    select t1.ID
    from t1 left outer join t2 on t1.ID=t2.ID
    where t2.ID is null;


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Top 6 Sources for Identifying Threat Actor TTPs

    Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

    Confronted with some SQL you don't know can be a daunting task. It can be even more daunting if that SQL carries some of the old secret codes used in the Ye Olde query syntax, such as: (+)     as used in Oracle;     *=     =*    as used in Sybase …
    Composite queries are used to retrieve the results from joining multiple queries after applying any filters. UNION, INTERSECT, MINUS, and UNION ALL are some of the operators used to get certain desired results.​
    The viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.
    Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

    779 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    14 Experts available now in Live!

    Get 1:1 Help Now