Welcome to SPN

Register and Join the most happening forum of Sikh community & intellectuals from around the world.

Sign Up Now!

Auto Populate

Discussion in 'Information Technology' started by KRDitch, Jul 28, 2006.

Tags:
  1. KRDitch

    KRDitch
    Expand Collapse
    Guest

    Is there a way that you can auto populate a text box when you choose
    something in a drop down box?
     
  2. Loading...

    Similar Threads Forum Date
    Opinion Is Autocomplete Evil? Some Women Take A Hard Look at Google ! Breaking News Nov 7, 2013
    Sikh News AutoZone sued for firing Everett Sikh Breaking News Sep 29, 2010
    India Singh: Centre Ready To Give Kashmir Autonomy Breaking News Aug 11, 2010
    India Paste tariff cards behind driver’s seat: Transport dept to automen Breaking News Jul 21, 2010
    Gursharan Kaur: India's First Lady's Autobiography Sikh Personalities Jun 1, 2010

  3. Allen Browne

    Allen Browne
    Expand Collapse
    Guest

    There's a couple of ways.

    One is to use the AfterUpdate event of the combo to set the value of the
    text box. To see an example, open the Northwind sample database, the Orders
    Subform, and look at the ProductID combo. Its AfterUpdate looks up the
    current price of the product, and drops it into the text box for price.

    The other way is to just use the text box to show what is in one of the
    other columns of the combo's RowSource. For example, if the value you want
    is in column 2 of the combo, you would set the Control Source of your text
    box to:
    =[Combo1].Column(1)

    (Note that the first column is zero, the 2nd is 1, and so on.)

    --
    Allen Browne - Microsoft MVP. Perth, Western Australia.
    Tips for Access users - http://allenbrowne.com/tips.html
    Reply to group, rather than allenbrowne at mvps dot org.

    "KRDitch" <KRDitch@discussions.microsoft.com> wrote in message
    news:545722E9-0927-4786-9629-AE4F5F8D0260@microsoft.com...
    > Is there a way that you can auto populate a text box when you choose
    > something in a drop down box?
     

Share This Page