Can anyone help on my difficult problem
Am trying many times in UNION query but it’s not working because there is different field names and only some fields are matched. So I need to both query's are combine in 1 query.
They Quay’s details:
1.Customer Credit Transaction1
2.Customer Credit Transaction2
Above both queries are already combined in UNION query as (Customer Credit Transaction Final) its not a problem.
So now I need to do combine the above Union query Customer Credit Transaction Final & ReceiptformQry.
The both query details:
Customer Credit Transaction Final
SELECT BillBook1.TID, BillBook1.BILLNo, BillBook1.BILLDate, BillBook1.Customer, BillBook1.BillMode, [BillBook1 Vat Details].[TOTAL Rs] AS [CC Amount]
FROM BillBook1 INNER JOIN [BillBook1 Vat Details] ON BillBook1.TID = [BillBook1 Vat Details].TID
WHERE (((BillBook1.BillMode)="Credit"));
UNION ALL
SELECT BillBook2.TID, BillBook2.BILLNo, BillBook2.BILLDate, BillBook2.Customer, BillBook2.BillMode, [BillBook2 Vat Details].[TOTAL Rs] AS [CC Amount]
FROM BillBook2 INNER JOIN [BillBook2 Vat Details] ON BillBook2.TID = [BillBook2 Vat Details].TID
WHERE (((BillBook2.BillMode)="Credit"));
ReceiptformQry
SELECT Receiptform.ID, Receiptform.RecNo, Receiptform.RecDate, Receiptform.Receivedfrom, Receiptform.Paymentfor, Receiptform.ReceiptMode, Receiptform.[Cheque/DDNo], Receiptform.Rupees
FROM Receiptform;
I need to combine above both query details of (Customer Credit Transaction Final & ReceiptformQry) and need to merge the some fields only and remaining fields are needed to show separately.
BillBook2.TID = Receiptform.ID
BillBook2.BILLNo = Receiptform.RecNo
Receiptform.RecDate = BillBook2.BILLDate
BillBook2.Customer = Receiptform.Receivedfrom
BillBook2.BillMode = Receiptform.ReceiptMode
Above fields are need to merge in Union query or otherwise. and remaining fields are needed to show separately. i have attached the Project file can anyone help on my problem plzzz plzzz plzzz
Thanks in Advance
Sandhya.
Am trying many times in UNION query but it’s not working because there is different field names and only some fields are matched. So I need to both query's are combine in 1 query.
They Quay’s details:
1.Customer Credit Transaction1
2.Customer Credit Transaction2
Above both queries are already combined in UNION query as (Customer Credit Transaction Final) its not a problem.
So now I need to do combine the above Union query Customer Credit Transaction Final & ReceiptformQry.
The both query details:
Customer Credit Transaction Final
SELECT BillBook1.TID, BillBook1.BILLNo, BillBook1.BILLDate, BillBook1.Customer, BillBook1.BillMode, [BillBook1 Vat Details].[TOTAL Rs] AS [CC Amount]
FROM BillBook1 INNER JOIN [BillBook1 Vat Details] ON BillBook1.TID = [BillBook1 Vat Details].TID
WHERE (((BillBook1.BillMode)="Credit"));
UNION ALL
SELECT BillBook2.TID, BillBook2.BILLNo, BillBook2.BILLDate, BillBook2.Customer, BillBook2.BillMode, [BillBook2 Vat Details].[TOTAL Rs] AS [CC Amount]
FROM BillBook2 INNER JOIN [BillBook2 Vat Details] ON BillBook2.TID = [BillBook2 Vat Details].TID
WHERE (((BillBook2.BillMode)="Credit"));
ReceiptformQry
SELECT Receiptform.ID, Receiptform.RecNo, Receiptform.RecDate, Receiptform.Receivedfrom, Receiptform.Paymentfor, Receiptform.ReceiptMode, Receiptform.[Cheque/DDNo], Receiptform.Rupees
FROM Receiptform;
I need to combine above both query details of (Customer Credit Transaction Final & ReceiptformQry) and need to merge the some fields only and remaining fields are needed to show separately.
BillBook2.TID = Receiptform.ID
BillBook2.BILLNo = Receiptform.RecNo
Receiptform.RecDate = BillBook2.BILLDate
BillBook2.Customer = Receiptform.Receivedfrom
BillBook2.BillMode = Receiptform.ReceiptMode
Above fields are need to merge in Union query or otherwise. and remaining fields are needed to show separately. i have attached the Project file can anyone help on my problem plzzz plzzz plzzz

Thanks in Advance
Sandhya.
Last edited: