469,626 Members | 1,241 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,626 developers. It's quick & easy.

Combobox / Display Member / SQL Question

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

Nov 21 '05 #1
1 1462
I've found the answer by searching other threads.

No need to reply.

"Stewart Lane" wrote:
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

Nov 21 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

6 posts views Thread by Omar | last post: by
2 posts views Thread by pei_world | last post: by
2 posts views Thread by Hanumanth Reddy | last post: by
2 posts views Thread by AMDRIT | last post: by
1 post views Thread by Sam | last post: by
4 posts views Thread by c_shah | last post: by
2 posts views Thread by =?Utf-8?B?SmFtZXMgTWFydGlu?= | last post: by
reply views Thread by gheharukoh7 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.