cuong0202 > 19-04-13, 09:58 AM
SELECT phieunhapkho.sophieunhap, phieunhapkho.ngaynhap, phieunhapkho.nguoigiao, dmkhnccnv.tenkhnccnv, dmkhnccnv.dienthoai, dmkhnccnv.mail, dmkhnccnv.bophan, chitietnhapkho.mahangnhap, danhmuchanghoa.tenhang, danhmuchanghoa.donvitinh, chitietnhapkho.soluongnhap
FROM (dmkhnccnv INNER JOIN phieunhapkho ON dmkhnccnv.makhnccnv = phieunhapkho.nguoigiao) INNER JOIN (danhmuchanghoa INNER JOIN chitietnhapkho ON danhmuchanghoa.mahang = chitietnhapkho.mahangnhap) ON phieunhapkho.sophieunhap = chitietnhapkho.sophieunhapkho
WHERE (((phieunhapkho.sophieunhap)=[Forms]![FnhapnoiboMrdung]![sophieunhap] And (phieunhapkho.sophieunhap) Like "PN-FP*") AND ((chitietnhapkho.soluongnhap)>0));
Xuân Thanh > 19-04-13, 10:08 PM
cuong0202 > 24-04-13, 10:41 PM
(19-04-13, 10:08 PM)Xuân Thanh Đã viết: 1/ View/Totals(hoặc kích dấu Sum trên thanh Tools Bar)
2/ Group By tất cả các trường, riêng trường số lượng dủng Sum
Thân mến
SELECT phieunhapkho.sophieunhap, phieunhapkho.ngaynhap, phieunhapkho.nguoigiao, dmkhnccnv.tenkhnccnv, dmkhnccnv.dienthoai, dmkhnccnv.mail, dmkhnccnv.bophan, chitietnhapkho.mahangnhap, danhmuchanghoa.tenhang, danhmuchanghoa.donvitinh, chitietnhapkho.soluongnhap
FROM (dmkhnccnv INNER JOIN phieunhapkho ON dmkhnccnv.makhnccnv = phieunhapkho.nguoigiao) INNER JOIN (danhmuchanghoa INNER JOIN chitietnhapkho ON danhmuchanghoa.mahang = chitietnhapkho.mahangnhap) ON phieunhapkho.sophieunhap = chitietnhapkho.sophieunhapkho
WHERE (((phieunhapkho.sophieunhap)=[Forms]![FnhapnoiboMrdung]![sophieunhap] And (phieunhapkho.sophieunhap) Like "PN-FP*") AND ((chitietnhapkho.soluongnhap)>0))
Group By phieunhapkho.sophieunhap, phieunhapkho.ngaynhap, phieunhapkho.nguoigiao, dmkhnccnv.tenkhnccnv, dmkhnccnv.dienthoai, dmkhnccnv.mail, dmkhnccnv.bophan, chitietnhapkho.mahangnhap, danhmuchanghoa.tenhang, danhmuchanghoa.donvitinh, chitietnhapkho.soluongnhap;
Xuân Thanh > 25-04-13, 10:45 AM
khải nguyên > 25-04-13, 05:31 PM
cuong0202 > 03-05-13, 02:19 PM
Xuân Thanh > 03-05-13, 02:51 PM
cuong0202 > 03-05-13, 02:58 PM