View trouble

access Saudi Arabia
  • 14 years ago

    The following code snippet is a view I'm accessing to display specific details in a treeview, built from two tables.


    SELECT Clients.ClientNumber + ',' + Clients.Lastname + ', ' + Clients.Firstname + '(' + Contract.ContractType + ')' AS Treeview_Name, Clients.IDNumber AS IDNumber
    FROM Clients INNER JOIN Contract ON Clients.IDNumber = Contract.IDNumber;


    Clients.ClientNumber is an AutoIncremented Integer type and the rest is all string values. My question is how can I convert or cast the ClientNumber to a string so that the view executes correctly without an error?





Post a reply

No one has replied yet! Why not be the first?

Sign in or Join us (it's free).

Contribute

Why not write for us? Or you could submit an event or a user group in your area. Alternatively just tell us what you think!

Our tools

We've got automatic conversion tools to convert C# to VB.NET, VB.NET to C#. Also you can compress javascript and compress css and generate sql connection strings.

“Nine people can't make a baby in a month.” - Fred Brooks