Whats wrong with this SQL statement in vb.net?

Signo.X

Well-known member
Joined
Aug 21, 2006
Messages
76
Location
Australia
Programming Experience
1-3
im trying to run this statement as my command string in my vb.net application :

when i run it, it's saying syntax error ..
VB.NET:
[SIZE=2][COLOR=#0000ff]Dim[/COLOR][/SIZE][SIZE=2] cmdString [/SIZE][SIZE=2][COLOR=#0000ff]As[/COLOR][/SIZE][SIZE=2][COLOR=#0000ff]String[/COLOR][/SIZE][SIZE=2] = [/SIZE][SIZE=2][COLOR=#800000]"SELECT ORDERSS.OrderNo, Count(*) AS total_lines, Sum(ORDERLINE.Qty * PART.PartPrice) AS total_amount"[/COLOR][/SIZE][SIZE=2] & _[/SIZE]
[SIZE=2][COLOR=#800000]"FROM ORDERSS, ORDERLINE , PART"[/COLOR][/SIZE][SIZE=2] & _[/SIZE]
[SIZE=2][COLOR=#800000]"WHERE ORDERSS.OrderNo = ORDERLINE.OrderNo AND ORDERLINE.PartCode = PART.PartCode "[/COLOR][/SIZE][SIZE=2] & _[/SIZE]
[SIZE=2][COLOR=#800000]"GROUP BY ORDERSS.OrderNo;"[/COLOR][/SIZE]


any idea???

~signo.X
 
Back
Top