S
Stevenator2006
I am somewhat new to access and have learned alot but need some help.
I have 2 questions that i need answered, but here's what i have so far.
The database i'm creating will track salesreps and thier goals and thier
sales for the day. I currently have two tables, table one named "Employees"
has the salesreps id#, first name, last name, and thier daily, weekly, pay
period, monthly, quarterly, and yearly goals. Table two is the daily input of
sales named "Orders", salesid#, Today'sDate, name of salesrep from
EmployeesID#, sales amounts, cold sales amount, number of orders, number of
dials, whether they were in or not(check box), number of K/O, amount of K/O,
number of cancels, and amount of cancels.
Now i have everything working correctly and looks great, but my problem is i
want to have several team reports based on sales for the day, week, PP,
quarter, month, and year. I got all the reports working correctly except for
the day one, but i had to make a seperate queries to sort the data by day,
week, PP( i used between dates expression), month, quarter, and year. Right
now it works great and looks the way i wanted it to look.
Is thier an easier way to get the same data to show on reports based on team
sales for the daily, weekly, PP, monthly, quarterly, and yearly without
making six different queries? or is the way i have it the best way?
Second, when i try and sort the data by day, it does it by the day name
(monday, tuesday, ect.) regardless of what month it is. Which is not what i
want it to do, i want it to sort it by the day number (December 17, 2005,
December 16, 2005, December 15, 2005, November 30, 2005, November 29, 2005,
ect) and show the totals sales for all salesreps for that day.
In the first column of the teamsalesbyday query i have it look like this
Field: Today'sDate By Date: Format$([Orders.Today'sDate],"mmmm dd"", ""yyyy")
Table: Blank
Total: Group by
Sort: Blank
Show: Checked
Criteria: blank
Or: blank
all others have the Sum Of Sales: Sales, Sum of ColdSales: ColdSales, ect.,
which it does, but when i try and sort it in descending order, it doesn't
sort it the way i want it too. It will sort it like this...
November 23, 2005
November 21, 2005
November 15, 2005
December 15, 2005
December 12, 2005
December 10, 2005
When i sort in ascending order it sorts like this...
December 10, 2005
December 12, 2005
December 15, 2005
November 15, 2005
November 21, 2005
November 23, 2005
Which is not the way i want. I would like December 15, 2005 to be in the top
row of the query table.
If i add a another column to the query with Today'sDate in it, i can then
sort it by day number in ascending or descending but it will not sum the
total sales for that day for the team, it will show all the sales for that
day, which is not what i want it to do. Is thier an easier way to thist?
any help would be greatly appreciated.
Thanks,
Steve K.
I have 2 questions that i need answered, but here's what i have so far.
The database i'm creating will track salesreps and thier goals and thier
sales for the day. I currently have two tables, table one named "Employees"
has the salesreps id#, first name, last name, and thier daily, weekly, pay
period, monthly, quarterly, and yearly goals. Table two is the daily input of
sales named "Orders", salesid#, Today'sDate, name of salesrep from
EmployeesID#, sales amounts, cold sales amount, number of orders, number of
dials, whether they were in or not(check box), number of K/O, amount of K/O,
number of cancels, and amount of cancels.
Now i have everything working correctly and looks great, but my problem is i
want to have several team reports based on sales for the day, week, PP,
quarter, month, and year. I got all the reports working correctly except for
the day one, but i had to make a seperate queries to sort the data by day,
week, PP( i used between dates expression), month, quarter, and year. Right
now it works great and looks the way i wanted it to look.
Is thier an easier way to get the same data to show on reports based on team
sales for the daily, weekly, PP, monthly, quarterly, and yearly without
making six different queries? or is the way i have it the best way?
Second, when i try and sort the data by day, it does it by the day name
(monday, tuesday, ect.) regardless of what month it is. Which is not what i
want it to do, i want it to sort it by the day number (December 17, 2005,
December 16, 2005, December 15, 2005, November 30, 2005, November 29, 2005,
ect) and show the totals sales for all salesreps for that day.
In the first column of the teamsalesbyday query i have it look like this
Field: Today'sDate By Date: Format$([Orders.Today'sDate],"mmmm dd"", ""yyyy")
Table: Blank
Total: Group by
Sort: Blank
Show: Checked
Criteria: blank
Or: blank
all others have the Sum Of Sales: Sales, Sum of ColdSales: ColdSales, ect.,
which it does, but when i try and sort it in descending order, it doesn't
sort it the way i want it too. It will sort it like this...
November 23, 2005
November 21, 2005
November 15, 2005
December 15, 2005
December 12, 2005
December 10, 2005
When i sort in ascending order it sorts like this...
December 10, 2005
December 12, 2005
December 15, 2005
November 15, 2005
November 21, 2005
November 23, 2005
Which is not the way i want. I would like December 15, 2005 to be in the top
row of the query table.
If i add a another column to the query with Today'sDate in it, i can then
sort it by day number in ascending or descending but it will not sum the
total sales for that day for the team, it will show all the sales for that
day, which is not what i want it to do. Is thier an easier way to thist?
any help would be greatly appreciated.
Thanks,
Steve K.