Results 1 to 3 of 3
  1. #1
    jsaaved2 is offline Novice
    Windows XP Access 2007
    Join Date
    Jan 2012
    Posts
    2

    Simple search

    Hi! I have a very simple databas with some product codes and a location related to each one. I am trying to set up a form to add the product code and that automatically (or clicking a botton) it will show the location. I do not want the search to go back to the data table and show me the prodcut code and location in the table; I want it to be shown in the same form. What is the easiest way to do this?


    Thanks!!!!!

  2. #2
    NTC is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    Nov 2009
    Posts
    2,392
    I trust that the form is bound to a table. In this table - the field that will hold the product info should set up as a Lookup field type that links over to your Product Table.

    When you set it up be sure to include the Location field to display also in the look up query.

    Then in the form you put a little vb code in the AfterUpdate event of the product field that "pushes" the location info over into the location field:
    me.locationfieldname = me.productname.column(3)

    something along these lines.....

  3. #3
    jsaaved2 is offline Novice
    Windows XP Access 2007
    Join Date
    Jan 2012
    Posts
    2
    Thank you taht did help

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

Similar Threads

  1. Simple Dynamic Client Search
    By Lorne in forum Forms
    Replies: 4
    Last Post: 12-21-2011, 04:58 PM
  2. Simple Search form
    By Juliano in forum Forms
    Replies: 2
    Last Post: 11-25-2010, 12:38 AM
  3. Replies: 0
    Last Post: 10-21-2010, 08:24 AM
  4. Replies: 2
    Last Post: 08-31-2010, 08:57 PM
  5. Simple list/combo search fails
    By Dega in forum Forms
    Replies: 4
    Last Post: 02-08-2010, 08:39 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