MS Access Newbie Question

Reward: $0.50
Ideas posted: 2
Posted by: RadioFlyer
79 views

I'd like to create a query expression that displays the variance between [Percentage] field entries in the same table based on a date and an office.  There is a percentage entry for multiple offices (distinguished by [OfficeCode]) and multiple entries per office distinguished by [ReportDate].


So the table looks something like this:


[OfficeCode]  [Percentage]  [ReportDate]


Off1                  90               1/1/11


Off2                  95               1/1/11


Off1                  93               2/1/11


Off2                  92               2/1/11


 


The result I want to see is:


Off1                 3


Off2                -3


 


I've created two queries to separate the date entries into separate tables, then an additional query based on those to calculate the variance, but I am getting duplicate results for some reason.  I don't want to have queries creating separate tables either if there is some way to avoid that.


I've been Googling around a bit but haven't found anything that addresses this specifically enough for me to apply it and I suppose I'm being impatient.


Please give me some ideas / instructions on how to best set up a query to give me the results I'm looking for.

 Idea submissions are immediately visible to the public.
Thanks BusinessGuy, but I want it in Access because 1) I am trying to learn the program and 2) connecting this with other database data by office code is a better fit in Access. (sidenote)Yes, Access and Excel can link data.
Feb 10, 2011
I'm forwarding this to my teacher, lucky you I'm taking MS Office as a class this semester. Hopefully will have an answer for you within the week. I can only answer for Access 2010 ver.
Feb 12, 2011
This idea would be a lot easier to solve in Excel -- then you could just use simple subtraction equations and sums if you want to expand your tables.

Doesn't Excel link with Access? I've never had to do it but I would try it out if it's possible.
Feb 10, 2011
$0.50
Ideas: 2
Expires in 5 days
Posted by: RadioFlyer
80 views
$20.00
Ideas: 3
Expires in 4 days
Posted by: IdeaOffer CEO
168 views
$3.00
Ideas: 10
Expires in 14 hours
Posted by: JohnnySaber
219 views
$10.00
Ideas: 6
Expires in 2 days
Posted by: Wasabi Ventures
284 views
$5.00
Ideas: 7
Expires in 1 week
Posted by: JohnJWalters
162 views
$5.00
Ideas: 16
Expires in 3 days
Posted by: JohnnySaber
283 views
$2.00
Ideas: 7
Expires in 3 days
Posted by: MyFitnessTunes
162 views
$0.75
Ideas: 8
Expires in 1 week
Posted by: Woodrow
179 views
$1.00
Ideas: 2
Expires in 1 month
Posted by: OutdoorsEagle
215 views
$1.00
Ideas: 5
Expires in 3 days
Posted by: InspectorElectra
343 views
$75.00
Ideas: 10
Expires in 1 month
Posted by: Wasabi Ventures
626 views
$15.00
Ideas: 2
Expires in 4 months
Posted by: Wasabi Ventures
311 views
$50.00
Ideas: 3
Expires in 4 weeks
Posted by: IdeaOffer CEO
1494 views
$20.00
Ideas: 51
Expires in 1 month
Posted by: Wasabi Ventures
798 views
RSS View All Open Projects