Hi All
Hopefully someone can help me cause i'm pulling my hair out....
I have a main form which holds client data (name address etc)
I then have an accounts form where statement infromation is entered, this form may hold several statements for the same person.
What I need is to mkae a query that shows the client details and onyl the most up to date statement the field for that is [Account_DateOfLastStatement]
I cannot get this to work everytime I try I get about 5 rows of data, all the main form data duplicated and a seperate line for each statement.. please help
Here is a simple example, when I run this I get several records instead of just the latest staement date:
Code:
SELECT tblData.ClientAISNumber, tblData.Client_Title, tblData.Client_Forname, tblData.Client_Surname, tblAccountStatus.Account_Balance, tblAccountStatus.Account_DateOfLastStatement
FROM tblData INNER JOIN tblAccountStatus ON tblData.ClientAISNumber = tblAccountStatus.ClientAISNumber
WHERE (((tblData.ClientAISNumber)=999999));
Please let me know if you need anymore information.
Thanks
Graham