First thing I did was copy your query in the report properties Data, Record Source to a new query and pasted.
I then added the field RemittanceID: [RemittanceUniqueID]
as the first field in the qry.
And I set the Criteria for this field to : [Forms]![RemittanceDetails]![RemitterUniqueID]
This links the field in your Form to the new field in your report.
To select the data for just one Remittance you MUST have the unique remittance ID in the query/report before any other steps can be taken.
I then set the reports datasource to the query. Really makes no difference if you have a separate query or a query actually in the report but for me I find it easier to edit and check when I deal with a query by it self.
Here is the sql query
SELECT RemittanceDetails.RemitterUniqueId AS RemittanceID, SenderDetails.SenderId, SenderDetails.SenderName, SenderDetails.SenderAddress1, SenderDetails.SenderPostalCode, SenderDetails.SenderCity, SenderDetails.SenderCountry, SenderDetails.SenderPhoneNo, BeneficiaryDetails.BeneficiaryId, BeneficiaryDetails.BeneficiaryName, BeneficiaryDetails.BeneficiaryCNICNo, BeneficiaryDetails.BeneficiaryAddress1, BeneficiaryDetails.BeneficiaryPostalCode, BeneficiaryDetails.BeneficiaryCity, BeneficiaryDetails.BeneficiaryCountry, BeneficiaryDetails.BeneficiaryPhoneNo, RemittanceDetails.RemitterKey, RemittanceDetails.RemitterUniqueId, RemittanceDetails.RemittanceDate, RemittanceDetails.RemittanceTime, RemittanceDetails.RemittanceCurrencyCode, RemittanceDetails.RemittanceAmount, RemittanceDetails.ExchangeRate, RemittanceDetails.LocalCurrencyCode, RemittanceDetails.LocalAmount, RemittanceDetails.RemittanceCharges
FROM (SenderDetails INNER JOIN BeneficiaryDetails ON SenderDetails.SenderId = BeneficiaryDetails.BenfSenderId) INNER JOIN RemittanceDetails ON BeneficiaryDetails.BeneficiaryId = RemittanceDetails.RemitterBenfId
WHERE (((RemittanceDetails.RemitterUniqueId)=[Forms]![RemittanceDetails]![RemitterUniqueID]));
Trust this assists
I then added the field RemittanceID: [RemittanceUniqueID]
as the first field in the qry.
And I set the Criteria for this field to : [Forms]![RemittanceDetails]![RemitterUniqueID]
This links the field in your Form to the new field in your report.
To select the data for just one Remittance you MUST have the unique remittance ID in the query/report before any other steps can be taken.
I then set the reports datasource to the query. Really makes no difference if you have a separate query or a query actually in the report but for me I find it easier to edit and check when I deal with a query by it self.
Here is the sql query
SELECT RemittanceDetails.RemitterUniqueId AS RemittanceID, SenderDetails.SenderId, SenderDetails.SenderName, SenderDetails.SenderAddress1, SenderDetails.SenderPostalCode, SenderDetails.SenderCity, SenderDetails.SenderCountry, SenderDetails.SenderPhoneNo, BeneficiaryDetails.BeneficiaryId, BeneficiaryDetails.BeneficiaryName, BeneficiaryDetails.BeneficiaryCNICNo, BeneficiaryDetails.BeneficiaryAddress1, BeneficiaryDetails.BeneficiaryPostalCode, BeneficiaryDetails.BeneficiaryCity, BeneficiaryDetails.BeneficiaryCountry, BeneficiaryDetails.BeneficiaryPhoneNo, RemittanceDetails.RemitterKey, RemittanceDetails.RemitterUniqueId, RemittanceDetails.RemittanceDate, RemittanceDetails.RemittanceTime, RemittanceDetails.RemittanceCurrencyCode, RemittanceDetails.RemittanceAmount, RemittanceDetails.ExchangeRate, RemittanceDetails.LocalCurrencyCode, RemittanceDetails.LocalAmount, RemittanceDetails.RemittanceCharges
FROM (SenderDetails INNER JOIN BeneficiaryDetails ON SenderDetails.SenderId = BeneficiaryDetails.BenfSenderId) INNER JOIN RemittanceDetails ON BeneficiaryDetails.BeneficiaryId = RemittanceDetails.RemitterBenfId
WHERE (((RemittanceDetails.RemitterUniqueId)=[Forms]![RemittanceDetails]![RemitterUniqueID]));
Trust this assists