Combobox / Display Member / SQL Question

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Can the display member of a combobox who's datasource is a dataset generated
from a SQl command in a data adpater BE SET to the concatenation of two
fields, like fname+' '+lname?

This is my SQL command:
SELECT custnumb, fname, lname FROM custmstr ORDER BY lname, fname

I've also tried:
SELECT custnumb, fname+' '+lname as flname FROM custmstr ORDER BY lname,
fname (and trying to set the display member to flname - but it wasn't
available even after I regenned the dataset)

Basically, I want to combine fname and lname and display this concatenation
in a combobox so a user can select which customer to begin editing in the
form.

Thanks in advance for any pointers.

Stewart
 
I've found the answer by searching other threads.

No need to reply.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top