Link to home
Start Free TrialLog in
Avatar of prowebinteractive
prowebinteractive

asked on

concatenate to db fields in to one datagrid column

I would like to append first name and last name that appear in 2 fields into 1 field in my datagrid

please help !
Avatar of Dimandja
Dimandja
Flag of United States of America image

Avatar of prowebinteractive
prowebinteractive

ASKER

I tried this doesnt seem to work.... im getting a "0" in the field
Can you show some code?
       Dim SqlString As String = "SELECT a.accountNumber, SU.fname + ' ' + SU.lname AS repName, p.nom, p.prenom, p.telHome, d.dealerName, ST.statusName AS accountStatus FROM accounts AS a INNER JOIN profiles AS p ON a.accountNumber=p.accountNumber INNER JOIN dealers AS d ON a.dealerId=d.dealerId INNER JOIN sysusers AS SU ON d.repId=SU.sysUserId LEFT JOIN accountStatus AS ST ON a.accountStatus=ST.statusId WHERE p.profile_type=1 and (a.accountStatus != 1 AND a.accountStatus != 8) AND a.deleted='false' ORDER BY ST.priority"
        Dim da As MySql.Data.MySqlClient.MySqlDataAdapter = New MySql.Data.MySqlClient.MySqlDataAdapter(SqlString, conn)
ASKER CERTIFIED SOLUTION
Avatar of Dimandja
Dimandja
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial