Closed Thread
Results 1 to 4 of 4

Find a country against code

  1. #1
    Registered User
    Join Date
    04-26-2007
    Posts
    77

    Find a country against code

    Dear Experts

    My table has following columns:
    Code, Country
    and data in Table is as

    1----India
    2----Iran
    3----Iraq

    All data was filled by UserForm, the UserForm has two textboxes i.e txtcode and txtcountry

    Now the question:
    If I enter some code that is already exists in Table then txtcountry should display country from Table

    Suppose I enter 3 in (txtcode) then (txtcountry) should display Iraq.
    If value does not exists then a messagebox should appear as "Code not found"

    Please help

  2. #2
    Forum Expert
    Join Date
    11-23-2005
    Location
    Rome
    MS-Off Ver
    Ms Office 2016
    Posts
    1,628
    See the attached file... I hope it's what you need.

    Regards,
    Antonio
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    04-26-2007
    Posts
    77

    Find with double criteria

    Dear Sir,

    Your zip file contains solution that I really needed.
    Please review the current zip file.
    Now I need to get data while using two columns.
    All information is in zip file.

    Thanks
    Attached Files Attached Files

  4. #4
    Forum Expert
    Join Date
    11-23-2005
    Location
    Rome
    MS-Off Ver
    Ms Office 2016
    Posts
    1,628
    See the attached file... I hope it's what you need.

    Regards,
    Antonio
    Attached Files Attached Files

Closed Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1