MySql = "SELECT PRODUCT.NAME AS PRODNAME,SUPPLY.NAME,SUPPLY.ADD,SUPPLY.TEL FROM PRODUCT,SUPPLY "
'產品名稱 廠商名稱 廠商地址 廠商電話
MySql = MySql & "WHERE PRODUCT.ID IN (SELECT PRODID FROM STOCKSUB WHERE PRODID ='" & strSUPPLYSHOW & "',"
進貨單明細
MySql = MySql & "SUPPLY.ID IN(SELECT SUPID FROM STOCKMAIN WHERE ID IN (SELECT MAINID FROM STOCKSUB WHERE PRODID ='" & strSUPPLYSHOW & "')"
進貨單
SQL這樣子寫可以用嗎???