CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Jun 2001
    Posts
    29

    relating combobox and text boxes PleaseHelp!!

    I am a beginner and really need help. If anyone could give me some sample code on how I get information from 2 tables(I made a query) into the appropriate text boxes when I make a selection from my combobox (one thing that was causing me problems was that the combobox contained an autonumber which can't be bound). Please help me I have a deadline to get this form functional for tommorrow!




    Liza

  2. #2
    Join Date
    Apr 1999
    Location
    VA BEACH
    Posts
    467

    Re: relating combobox and text boxes PleaseHelp!!

    you need to trap the Change event for the combo box and then refresh your data; and display it in the controls.

    in your forms code, click the general combo and select your combo box from the list.
    then in the declarations combo select the change event.

    In the function it adds to your program, you can refresh you data in your textboxes.



    Jim Hewitt
    Software Developer
    Liberty Tax Service
    www.LibertyTax.com

Posting Permissions

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





Click Here to Expand Forum to Full Width

Featured