473,406 Members | 2,356 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

Concatenate Display Member in Bound Combo

Is there any way to concatenate a display member in a bound combo (ex:
FirstName & LastName) or do I merely have to have a field called FullName in
my dataset from the get go and bring that over???
Jul 21 '05 #1
2 2729
Hello Aaron,

Thanks for your post. As I understand, you want to combine two column of a
table into one in the DataSet and display it. Please correct me if there is
any misunderstanding. Now I'd like to share the following information with
you:

SQL statement "Select" supports combining several columns into one with "+"
and "AS" clause. Please refer to the following sample:

SELECT LastName + ' , ' + FirstName AS FullName FROM Employees

As in this case, you can fill the CommandText of SelectCommand in your
SqlDataAdapter with such SQL statment. Right click you SqlDataAdapter and
choose the menu "Preview Data" to verify whether or not it works. And then,
you can create its corresponding DataSet object and fill it with the code
below:

MySqlDataAdapter.Fill(MyDataSet)

Please let me know the result.

Have a nice day!

Regards,

HuangTM
Microsoft Online Partner Support
MCSE/MCSD

Get Secure! -- www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

Jul 21 '05 #2
Hi Aaron,

Does the information I post last time help you resolve the problem?

Have a good day!

Regards,

HuangTM
Microsoft Online Partner Support
MCSE/MCSD

Get Secure! -- www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

Jul 21 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Michelle | last post by:
Hi all I have a form with two subforms The main form has a combo box which lists ShiftPatternID. When user selects from combo first subform shows shift pattern for that ID, ie user selects,...
5
by: sparks | last post by:
After trying a combo box to do this. its tied to a lookup table name value yes 1 no 0 they wanted to be able to type in a 1 but display a yes in the field. and store a 1 in the...
2
by: JumpinJeff | last post by:
I have a combo box that displays contact names. The recordsource contains ID and contact names (displayed as 0;1", column count 2, bound column 1). All works well except while changing records...
6
by: Harshil | last post by:
I am developing an application in vb.net and oracle as my database. my goal is to display the county names (display member) to the user while store county id (value member) in the combo box. when I...
2
by: AMDRIT | last post by:
Hello Everyone, I would like to format the Display Members of a combobox's datasource. Is there a way to apply a format without subclassing the original datasource? For example, given a list of...
2
by: Aaron Ackerman | last post by:
Is there any way to concatenate a display member in a bound combo (ex: FirstName & LastName) or do I merely have to have a field called FullName in my dataset from the get go and bring that over???
2
by: perryche | last post by:
Bear with me since I know very limited knowledge about VBA and Module... I have a table Employees, where I build a query out of based on TeamID=1, Therefore, only listed those employees that...
4
by: rszebras | last post by:
I inherited a database (as a novice at Access) and need to modify it to make it more efficient, i.e., the assignment form needs to autopopulate with the client's name, address, phone number, etc.,...
1
by: Bob Johnson | last post by:
..NET 3.5, Windows Forms app: My objective is to display parent/child data in two ComboBox controls, such that when a parent item is selected in one combo box, associated child items appear in the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.