CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3

Thread: Combo Box

  1. #1
    Join Date
    Mar 2001
    Posts
    16

    Combo Box

    How do I put two database field values in a single combo box? If it is not possible then what is the alternative to do the same?


  2. #2
    Join Date
    Feb 2000
    Posts
    440

    Re: Combo Box

    I suppose you talk about databound combobox

    It is possible by concatenating the two fields
    when you specify your sql query

    In SQL server this works:

    For example:

    SELECT FirstField + SecondField AS Both
    FROM MyTable

    Have fun.

    Valery Iskarov Nikolov
    http://listen.to/quark

  3. #3
    Join Date
    Mar 2001
    Posts
    16

    Re: Combo Box

    Thanks Valery Iskarov Nikolov for ur help.


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