Results 1 to 2 of 2
  1. #1
    siema24 is offline Novice
    Windows 7 64bit Access 2010 32bit
    Join Date
    Jan 2017
    Posts
    22

    Easy way to get table value with index // VBO

    Hi, I'm looking for an easy VBO function that allowes me to get table value. Let me give you an example. I have a simple table tblTeam that consists of:
    -index
    -name
    -surname

    and it's filled with data (index/name/surname)
    1 / John / Smith


    2 / Aaron / Paul
    3 / Bryan / Cranston

    I need a code that uses input data (3, surname) and gives me value "Cranston".......
    function_i_need(3,surname)=Cranston
    can you please help me? : ) Thank you so much in advance!

  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,652
    Simplest would be DLookup(():

    DLookup Usage Samples
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

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

Similar Threads

  1. Index table on Open
    By doncarp in forum Access
    Replies: 1
    Last Post: 04-15-2016, 01:51 PM
  2. 'id' is not an index in this table
    By DManders in forum Access
    Replies: 4
    Last Post: 08-18-2015, 04:17 AM
  3. Where is the Index for Table?
    By netchie in forum Access
    Replies: 5
    Last Post: 12-13-2012, 07:53 PM
  4. 'Id' is not an index in this table - Help
    By waldock9 in forum Access
    Replies: 3
    Last Post: 11-08-2011, 01:48 PM
  5. Replies: 0
    Last Post: 03-29-2011, 09:37 AM

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