Advertisement

09.11.2008 at 08:36AM PDT, ID: 23723328
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

8.0

Calculating a stored value

Asked by WoodrowA in Microsoft Access Database

Tags: , ,

I am almost afraid to ask this question because I think I am likely to get a response that says "you are not supposed to calculate a stored value."  I know you're not supposed to most of the time, but there are exceptions.

Sometimes I allow the owner of an applicaiton to do some things interactively with Access.  This allows them to do a number of ad-hoc queries (and potentially reports) on their own.  However, writing SQL code that does multiplications is generally just a little to much for them to grasp.  They like it better when they can just select field names and let Access do all the work for them.

I have three controls on a form that constitute a calculation.  The multiplying of these these 3 controls is what constitutes the value that should be placed into a real field.  One of those controls (that are part of the calculation) is itself a calculated control.  If this were not the case, (ie, that one of the fields is already a control that contains a calculation) there wouldn't be a problem.  I guess the question is, How do I get the result of controlA (that contains real data) times controlB (that contains real data) times control C (which is itself a calculated field) into a real control called txtSalesCommission?

My first thought was to put an unbound, hidden control on the form that contains an expression that produces the result I'm looking for.  Then, when the value in that control changes, fetch its value (like in the afterupdate event of that control) and put it in the real control (txtSalesCommission).  The theory is good but the reality seems to be that no events are triggered in a calculated field (like afterUpdate).  Perhaps there is another, better way.

Start Free Trial
[+][-]09.12.2008 at 12:35AM PDT, ID: 22457758

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09.12.2008 at 07:54AM PDT, ID: 22460416

View this solution now by starting your 30-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Microsoft Access Database
Tags: Microsoft, Access 2007, 2007
Sign Up Now!
Solution Provided By: WoodrowA
Participating Experts: 1
Solution Grade: A
 
 
 
Loading Advertisement...
20081112-EE-VQP-44 / EE_QW_2_20070628