Hi,
I have a requirement to create a query that links two tables together however, I want all records from the first table (within a date range), but only the latest record from the call logs table.
How do you define the query for this?
I've tried creating a linked query where the call logs has 'select TOP 1' , hoping it would get all records from the customer table and then the top 1 records for each customer from the calls log , but this actually only gets 1 record from the calls log table, not one record for each customer record, which I had hoped.
is there a way to do this via linked querries or do i need to use VBA coding to achieve this?
Cheers, 1DMF.
"In complete darkness we are all the same, only our knowledge and wisdom separates us, don't let your eyes deceive you."
"If a shortcut was meant to be easy, it wouldn't be a shortcut, it would be the way!
I have a requirement to create a query that links two tables together however, I want all records from the first table (within a date range), but only the latest record from the call logs table.
How do you define the query for this?
I've tried creating a linked query where the call logs has 'select TOP 1' , hoping it would get all records from the customer table and then the top 1 records for each customer from the calls log , but this actually only gets 1 record from the calls log table, not one record for each customer record, which I had hoped.
is there a way to do this via linked querries or do i need to use VBA coding to achieve this?
Cheers, 1DMF.
"In complete darkness we are all the same, only our knowledge and wisdom separates us, don't let your eyes deceive you."
"If a shortcut was meant to be easy, it wouldn't be a shortcut, it would be the way!