jamiecalvert
Registered User.
- Local time
- Today, 01:22
- Joined
- Jul 10, 2002
- Messages
- 10
If any one could help me with this problem I would appreciate it.
An overall salesperson is assigned to a customer but there may be individual products sold to that customer by different salespersons. One customer can buy many products.
Tables are:
CUSTOMER
CustomerID
SalespesonID
SALESPERSON
SalespersonID
PRODUCT
ProductID
CustomerID
SalespersonID
There are of course other fields. Names are shown in two fields Firstname & LastName.
I have a number of queries I am building to base reports on. Most of these use the Product table. The problem is that when producing reports I do not have the Clients or Salesperson name shown, only their ID number. I know why this is -whilst the look-up may return a name, the ID behing is a number - the ID number. I additionally wanted the names shown. I then added to my queries an expression which combined the Salespersons first & last name. OK to this point. Any report produced the Salespersons full name as well as their ID. When I added another expression combining the Customers first & last names, either all on the records dissappeared once the query had run, or I could not run it because their were ambigious joins. I have tried the help options but cannot seen to write any expressions which work, either in the query or reports.
I am a new user & apologise if I am missing something basic. I would appreciate any help.
An overall salesperson is assigned to a customer but there may be individual products sold to that customer by different salespersons. One customer can buy many products.
Tables are:
CUSTOMER
CustomerID
SalespesonID
SALESPERSON
SalespersonID
PRODUCT
ProductID
CustomerID
SalespersonID
There are of course other fields. Names are shown in two fields Firstname & LastName.
I have a number of queries I am building to base reports on. Most of these use the Product table. The problem is that when producing reports I do not have the Clients or Salesperson name shown, only their ID number. I know why this is -whilst the look-up may return a name, the ID behing is a number - the ID number. I additionally wanted the names shown. I then added to my queries an expression which combined the Salespersons first & last name. OK to this point. Any report produced the Salespersons full name as well as their ID. When I added another expression combining the Customers first & last names, either all on the records dissappeared once the query had run, or I could not run it because their were ambigious joins. I have tried the help options but cannot seen to write any expressions which work, either in the query or reports.
I am a new user & apologise if I am missing something basic. I would appreciate any help.