Results 1 to 5 of 5

Thread: DataCombo Listfield

  1. #1
    Guest

    Post

    Does anybody have a tip on how to list more than one field on a DataCombo - specifically, I need to show Lastname, Firstname Middlename which I have as separate database fields.

  2. #2
    Guru Clunietp's Avatar
    Join Date
    Oct 1999
    Location
    USA
    Posts
    1,844

    Post

    Concatenate your fields into 1, then add them to the list. You might have to do this manually, I don't think the bound listbox/combobox can do this by itself...

    Example of concatenation & SQL: http://www.vb-world.net/ubb/Forum3/HTML/002596.html


  3. #3
    Guest

    Post

    Are you saying this should be done on the database side, not in code? ie, I need to add another field for the concatenated ones?

  4. #4
    Guru Clunietp's Avatar
    Join Date
    Oct 1999
    Location
    USA
    Posts
    1,844

    Post

    I am saying that you probably can't use a bound control, and have to do this in code (unless you make a query/view to do this for you, and bind the control to that query field instead)

  5. #5
    Guest

    Post

    That's a good idea - the query/view. Thanks.

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