+ Reply to Thread
Results 1 to 3 of 3

Thread: Lookup on a Form

  1. #1
    Registered User
    Join Date
    02-09-2009
    Location
    Upstate New York
    MS-Off Ver
    Excel 2003
    Posts
    17

    Lookup on a Form

    I have two tables:

    1. Dealer (Dealer Code, Dealer Name, Contact, etc)
    2. Transactions (Customer, Dates, Amount, Dealer Code, Dealer Name, etc)

    When entering the transaction information in the form... I would like to enter the Dealer Code and have the Dealer Name populate.

    I have been attempting this for a few days and am now getting negative results.

    Can someone point me in the right direction?

    In excel this is an easy VLookup...

  2. #2
    Forum Guru pike's Avatar
    Join Date
    12-11-2005
    Location
    Alstonville, Australia
    MS-Off Ver
    2010
    Posts
    5,150

    Re: Lookup on a Form

    Hi njexpress9
    Roy has a good download to show you how
    J & R Database Form...
    http://www.excel-it.com/vba_examples.htm
    regards pike

    If the solution helped please donate
    here to the RSPCA

    Sites worth visiting;

    J&R Solutions - royUK

    AJP Excel Information - Andy Pope

    Spreadsheet Toolbox

    VBA for smarties - snb

  3. #3
    Valued Forum Contributor alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Lake County, Illinois
    MS-Off Ver
    MS Office 2010, 2007 and 2002
    Posts
    1,161

    Re: Lookup on a Form

    Is the dealer code being populated through a combo box look up? If so, then use the this formula in the text box for the name.

    = comboboxdealerid.column(x)
    where x represents the column number for the field in your lookup for the dealer name and comboboxdealerid needs to be changed to the name of your combobox. The first column in the Query grid is 0 and numbers 1-up from the left.

    Alan

+ Reply to 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.2.0