Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Shaun E on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

can't get my query to work

Status
Not open for further replies.

bikebanditcom

Programmer
Jun 11, 2003
117
US
can anyone help me with the following code for a query, i am trying to get it to spit out a cancelled sales report, i have two tables, one is tblsales, the other is tblSalesPackages, now the status of the sales have to be at the package level because often one package may cancel while the others remain, so im tyring to build the following query, can anyone help me with the SQL

SELECT *
FROM tblSales, tblSalesPackages
WHERE p_salemanID = MMColParam AND status = Cancelled

im using dreamweaver and yes i know its probably detrimental to my code and my skills but for the time being its all i have to work with so i have to make it work using this, as long as i can get that statement written properly it should work fine. can anyone help me please? thanks in advance.

dan
 
This should work
sql="SELECT * FROM tblSales, tblSalesPackages WHERE p_salemanID = MMColParam AND status = 'Cancelled'"

________
George, M
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top