potts
Registered User.
- Local time
- Today, 00:50
- Joined
- Jul 24, 2002
- Messages
- 87
I am using a query to build a report, but can't get it to select the records I want!!
In the query I have 3 tables:
tblCustomers
tblAthletes
tblSessionDetails
tblCustomers has a 1-many relationship with tblAthletes on a CustomerID field
tblAthletes has a 1-many relationship with tblSessionDetails on an AthleteID field
OK so far?
Now, tblSessionDetails also has a CustomerID field that is not joined to tblCustomers. This field is required as charges are sometimes to the individual athlete and sometimes to the overall group i.e. customer.
Confused yet?
For my report, I need to include:
tblSessionDetails - AthleteID, CustomerID, SessionDate, Charge
The report is going to be linked to another report by tblCustomers![CustomerID]
The problem is that I can't get the dynaset to display the required information. If both tblCustomers![CustomerID] and tblSessionDetails![CustomerID] are included, the results in the tblSessionDetails![CustomerID] column are ignored. I have tried renaming the tblSessionDetails![CustomerID] field, but with no success.
Any ideas?
In the query I have 3 tables:
tblCustomers
tblAthletes
tblSessionDetails
tblCustomers has a 1-many relationship with tblAthletes on a CustomerID field
tblAthletes has a 1-many relationship with tblSessionDetails on an AthleteID field
OK so far?
Now, tblSessionDetails also has a CustomerID field that is not joined to tblCustomers. This field is required as charges are sometimes to the individual athlete and sometimes to the overall group i.e. customer.
Confused yet?
For my report, I need to include:
tblSessionDetails - AthleteID, CustomerID, SessionDate, Charge
The report is going to be linked to another report by tblCustomers![CustomerID]
The problem is that I can't get the dynaset to display the required information. If both tblCustomers![CustomerID] and tblSessionDetails![CustomerID] are included, the results in the tblSessionDetails![CustomerID] column are ignored. I have tried renaming the tblSessionDetails![CustomerID] field, but with no success.
Any ideas?