After key in the Code, it become like this
I want to delete the row if [qty] col is empty.
Result should be this
BS_Code | ContractID | Install BS Per Day | LayoutID | Qty |
1111 | 2019 | 100 | 228WP | 1 |
1111 | 2019 | 100 | 705WP |
I want to delete the row if [qty] col is empty.
Result should be this
BS_Code | ContractID | Install BS Per Day | LayoutID | Qty |
1111 | 2019 | 100 | 228WP | 1 |
VBA Code:
SELECT TbInvoice2.BS_Code, TbInvoice2.ContractID, TbInvoice2.[Install BS Per Day], '228WP' AS LayoutID, [228WP] AS Qty
FROM TbInvoice2 where null is null;
union all
SELECT TbInvoice2.BS_Code, TbInvoice2.ContractID, TbInvoice2.[Install BS Per Day], '705WP' AS LayoutID, [705WP] AS Qty
FROM TbInvoice2 where [705WP] is null;