Results 1 to 5 of 5
  1. #1
    Join Date
    Jun 2018
    Posts
    2

    Post Lookup the field in MSAccess

    Hi Friends,

    Have a good day,

    I am a new member to this forum, just started to learn the MS Access. This forum is very helpful to enhance my Access knowledge.
    i have a question we have a two tables is available 1 is country wise sales 2nd table have hold the data Country against region (Column A and Column B).
    My question is very simple i need to map the data in the 1st Table (country wise sales) country against the Region Column. Please help me to resolve the query. it's very easy in excel we did vlookup and refer the column 2 (Table2) but in Ms Access i wont do that.

    Table 1

    Sales ID | Country | Sales Qty | Sales Amt



    5 UK 10 10000
    10 USA 7 8000

    Table 2

    Country | Region

    UK EMEA
    USA NAM
    CHINA APA
    MANILA WCA

    Thank you for your quick response.

    Rajuganapathy

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,643
    Start a new query and add both tables to the grid. If a join line doesn't get added between the two country fields, click/drag to create one. Now you can return fields from both tables.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    Join Date
    Jun 2018
    Posts
    2
    Hi Paul,

    Thanks for your reply, am unable to understand your answer. Herewith I have attached the database sheet, could you please help. Thank you

    Myslef unable to attach the file,anyone help me.

  4. #4
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,643
    If you do a compact/repair and then zip, it should be small enough to attach here.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  5. #5
    orange's Avatar
    orange is offline Moderator
    Windows 10 Access 2010 32bit
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,850
    raj,

    You will do yourself a great favor if you do NOT use field names with embedded spaces.

    It seems that you have Sales to Countries that are located in Regions. You don't mention SalesPerson, nor Customer/Client?

    Here is a link to Countries by GeoRegion from UN that may be of interest to you.

    Good luck with your project.


    Sales -->Country--->RegionContainsCountry<---Region

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 10
    Last Post: 03-22-2021, 07:59 AM
  2. Replies: 2
    Last Post: 11-04-2017, 05:06 PM
  3. Learn MSAccess by playing MSAccess Jeopardy
    By pkstormy in forum Sample Databases
    Replies: 4
    Last Post: 11-17-2016, 07:27 AM
  4. Replies: 4
    Last Post: 03-17-2016, 07:16 AM
  5. Lookup values not appearing in Lookup field?
    By dominover in forum Access
    Replies: 4
    Last Post: 03-05-2016, 05:01 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums