J
joave
Hi:
I have three tables that I need to set up a query for. The first table
contains the users and related data. The second (sales) table contains each
sale for the last year along with the user ID and date of sale (they only
sell one product so that makes it a little easier). There are several user
tables each containing their own list of users for their respective locations
but only one sales table.
The sales table provides a column for whether the sale was made as well as
a column for the lead (a '1' shows a qualified lead in that column and the
same symbol shows a sale in that other respective column). Those two tables
are related by user id. The third table contains goal data for comparison
purposes: the number of days in each month for division purposes and sales
goals for the team in terms of leads and sales per month (in separate
columns).
The query needs to total the sales for the entire group for a particular
month, figure out how many sales per day they had, and compare it to the set
goal from the 3rd table. Now I do have a Query that totals the sales but I
don't know how to compare the data with the 3rd table to see if the team made
their goals. Is it better to set up VBA to do it (if it can) or can Access
SQL do it, and if so, how? A hint on how VBA could do it would also be
helpful if you are leaning in that direction.
Thank you in advance for any help you can provide.
Dave
I have three tables that I need to set up a query for. The first table
contains the users and related data. The second (sales) table contains each
sale for the last year along with the user ID and date of sale (they only
sell one product so that makes it a little easier). There are several user
tables each containing their own list of users for their respective locations
but only one sales table.
The sales table provides a column for whether the sale was made as well as
a column for the lead (a '1' shows a qualified lead in that column and the
same symbol shows a sale in that other respective column). Those two tables
are related by user id. The third table contains goal data for comparison
purposes: the number of days in each month for division purposes and sales
goals for the team in terms of leads and sales per month (in separate
columns).
The query needs to total the sales for the entire group for a particular
month, figure out how many sales per day they had, and compare it to the set
goal from the 3rd table. Now I do have a Query that totals the sales but I
don't know how to compare the data with the 3rd table to see if the team made
their goals. Is it better to set up VBA to do it (if it can) or can Access
SQL do it, and if so, how? A hint on how VBA could do it would also be
helpful if you are leaning in that direction.
Thank you in advance for any help you can provide.
Dave