manared
Well-known member
- Joined
- Jun 1, 2006
- Messages
- 84
- Programming Experience
- 1-3
Alright, I'm creating a web app in vb.net 2005 and I have a SQL statement that I guess is not correct. I was wondering if anyone can help me or see a problem. I get the error "Syntax error in JOIN operation" Here is my SQL statement:
I have several other statements similar to this that are working just fine. They use maybe one different table, so they are different, but I'm confused on this one. Let me know if anyone needs more code or any more explanation. Thank you!!!
VB.NET:
[SIZE=2]lblSqlStatement.Text = [/SIZE][SIZE=2][COLOR=#800000]"SELECT QuoteMaster.ID, QuoteMaster.QuoteNumber, Customer.CustomerName, QuoteForecast.Description FROM ((QuoteMaster INNER JOIN QuoteEquipment ON QuoteMaster.ID = QuoteEquipment.QuoteID) INNER JOIN (Customer ON QuoteMaster.BuyerID = Customer.ID) INNER JOIN QuoteForecast ON QuoteMaster.ID = QuoteForecast.ID WHERE ((QuoteEquipment.Description)= '"[/COLOR][/SIZE][SIZE=2] & ddlEquipment.SelectedItem.Text & [/SIZE][SIZE=2][COLOR=#800000]"' ));"
[/COLOR][/SIZE]
I have several other statements similar to this that are working just fine. They use maybe one different table, so they are different, but I'm confused on this one. Let me know if anyone needs more code or any more explanation. Thank you!!!