Hi smarter people,
I'm working on a light CRM database for work. I've set up the relationships and imported his data from an old DB we were using before and I have an issue that I've posed at a couple other places with some help, but the more ideas the better. I've attached the relationship report from access2007.
1 of the reports I'm trying to assemble is an activity list. It lists the Account the activity was performed on, the contact person at the account, as well as a description and a couple other pieces of information.
Unfortunately the query that Access wrote (via my input through the Query Designer) is not returning any results. I'm hoping someone might be able to understand why.
I'm working on a light CRM database for work. I've set up the relationships and imported his data from an old DB we were using before and I have an issue that I've posed at a couple other places with some help, but the more ideas the better. I've attached the relationship report from access2007.
1 of the reports I'm trying to assemble is an activity list. It lists the Account the activity was performed on, the contact person at the account, as well as a description and a couple other pieces of information.
Unfortunately the query that Access wrote (via my input through the Query Designer) is not returning any results. I'm hoping someone might be able to understand why.
Code:
SELECT DISTINCTROW tblAccount.AccountName, [tblContact.FirstName] & " " & [tblContact.LastName] AS Name, tblActivity.ActivityDate, tblActivity.ActivityTime, tblActivityType.ActivityType, tblActivity.Description, tblContact.Phone
FROM tblActivityType INNER JOIN ((tblAccount INNER JOIN tblActivity ON tblAccount.AccountID = tblActivity.ContactID) INNER JOIN tblContact ON (tblAccount.AccountID = tblContact.AccountID) AND (tblActivity.ContactID = tblContact.ContactID)) ON tblActivityType.ActivityTypeID = tblActivity.ActivityTypeID;