K
kaosyeti
hello. i have 2 queries, 1 that has daily data entered based on how many
customers a salesperson had that day and one that is monthly for how many
cars that person sold for a given month. i have a report that is based off
of the first query but now i want to add one field from the 2nd to be able to
calculate how many customers each salesperson saw vs. how many cars they sold
for a given time period (usually monthy). my problem is that the report
won't pull that field from the 2nd query (qrysoldunits). i've tried every
combination i can think of to join some of the fields in both the tables and
the queries but i think that i don't know enough about relationships to do it
right. for now, there's no defined relationships at all. there are also no
primary keys in any of my tables as none of the data is truly unique and may
be repeated in many records in each table.
i did try using dlookup as suggested by Marshall Barton but didn't get it to
work. i used =DLookUp([qrysoldunits]![units],[qrysoldunits]) as my
expression but no dice. the report is grouped by salesperson 1st and
department 2nd so i had this expression in a control in the department footer
section of the report -- that's why i didn't specifiy criteria. am i doing
it wrong?
any ideas? thanks.
customers a salesperson had that day and one that is monthly for how many
cars that person sold for a given month. i have a report that is based off
of the first query but now i want to add one field from the 2nd to be able to
calculate how many customers each salesperson saw vs. how many cars they sold
for a given time period (usually monthy). my problem is that the report
won't pull that field from the 2nd query (qrysoldunits). i've tried every
combination i can think of to join some of the fields in both the tables and
the queries but i think that i don't know enough about relationships to do it
right. for now, there's no defined relationships at all. there are also no
primary keys in any of my tables as none of the data is truly unique and may
be repeated in many records in each table.
i did try using dlookup as suggested by Marshall Barton but didn't get it to
work. i used =DLookUp([qrysoldunits]![units],[qrysoldunits]) as my
expression but no dice. the report is grouped by salesperson 1st and
department 2nd so i had this expression in a control in the department footer
section of the report -- that's why i didn't specifiy criteria. am i doing
it wrong?
any ideas? thanks.