sql - Syntax error (missing operator) in query expression '' -


i'm getting particular error couple hours , still can't figure out life of me what's wrong select statement, i'm trying connect 3 tables.

"select poitem.po 'purchase_order', poitem.qty 'quantity',  poitem.bcurr 'currency', poitem.totalcost, po.vendor, master.desc1  po  left join poitem on po.id = poitem.po ,  inner join master on master.ipn = poitem.ipn  poitem.ipn = '" & textbox1.text & "'  order poitem.po desc" 

there and keyword not necessary @ position (just in front of inner join). if remove , add brackets around left join, query should work:

"select poitem.po 'purchase_order', poitem.qty 'quantity',  poitem.bcurr 'currency', poitem.totalcost, po.vendor, master.desc1  (po  left join poitem on po.id = poitem.po)  inner join master on master.ipn = poitem.ipn  poitem.ipn = '" & textbox1.text & "'  order poitem.po desc" 

by way, instead of including value of textbox1.text in string, rather use parameters in order avoid sql injection attacks.


Comments

Popular posts from this blog

javascript - Google App Script ContentService downloadAsFile not working -

javascript - Function overwritting -

php - Find a regex to take part of Email -