CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5
  1. #1
    Join Date
    Jan 2000
    Posts
    264

    Filling fields on form based on selection from dropdown list

    I have a dropdown list that is populated with a field from my recordset. I also have text boxes on my form from the same recordset. When I select a value from the dropdown, it doesn't populate(update) the rest of the text boxes on the form. I know that I am probably missing something simple here but I can't figure this out. Anyone have any suggestions?


  2. #2
    Join Date
    Jan 2000
    Posts
    9

    Re: Filling fields on form based on selection from dropdown list

    There should be something wrong with the code. If I can take a look at the code, I may be able to help.


  3. #3
    Join Date
    Jan 2000
    Posts
    264

    Re: Filling fields on form based on selection from dropdown list

    Well, um..there is no code. I just have the DataCombo box painted on my form with the DataSource as my 'datPrimaryRS' and the DataField as the field in my database. Also, the RowSource is set to 'datPrimaryRS'. The other text fields on my form have the same properties except the DataField property. Is there some other property or extra code I need to update those fields?


  4. #4
    Join Date
    Jan 2000
    Posts
    9

    Re: Filling fields on form based on selection from dropdown list

    You have to write code to do what you want! It cannot be done by setting properties.


  5. #5
    Join Date
    Jan 2000
    Posts
    264

    Re: Filling fields on form based on selection from dropdown list

    Ok, then I am back to my original question ...how do I do this?

    Thank you


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