Results 1 to 4 of 4
  1. #1
    kchm2000 is offline Novice
    Windows 10 Access 2016
    Join Date
    Mar 2017
    Posts
    16

    Query returns value only if criteria is country code but not country name


    Hi, i am trying to run a query using country as a criteria. In the "country all active query" even though the data is being drawn from the Issues table which holds the value by country name, the only way i can retrieve results is by query using the country code. Could someone show me how i can retrieve the results by country name, when i tried that in the query "copy of country all active" it doesn't work.

    I have attached my database here Country Form v1.zip.

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,549
    Join the data table to the tCountry table on CountryCode field,
    bring down the * from data table,and tCountry.CountryName
    enter the country name in the criteria.

  3. #3
    davegri's Avatar
    davegri is online now Excess Access
    Windows 10 Access 2016
    Join Date
    May 2012
    Location
    Denver
    Posts
    3,700
    As ranman suggests, here's a graphic how.
    Attachment 28160

  4. #4
    kchm2000 is offline Novice
    Windows 10 Access 2016
    Join Date
    Mar 2017
    Posts
    16
    thanks i understand and it works

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

Similar Threads

  1. Select top 5 from each country
    By Assamita in forum Queries
    Replies: 4
    Last Post: 10-11-2016, 06:47 PM
  2. Extract Country Code from a larger field
    By wcrimi in forum Queries
    Replies: 9
    Last Post: 06-14-2015, 04:43 PM
  3. How to find Country by using the email address?
    By jamesfranklin in forum Programming
    Replies: 2
    Last Post: 03-07-2013, 07:07 AM
  4. Replies: 1
    Last Post: 07-20-2012, 03:31 AM
  5. Country Code Calculation
    By nchesebro in forum Forms
    Replies: 14
    Last Post: 06-15-2011, 02:03 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