Solved

Form Calculations in Access 2010

Posted on 2013-06-27
3
506 Views
Last Modified: 2013-06-27
Hi. Please see attached form 1 and table 1 behind the form

Field 3 represent combo box which user select yes; no; n/a

I need a code which do the following

if Field 3 answer is "Yes" it should add value listed in the Form field "Number" and value listed in the form field "Number 2" and put results to the Field "Calc Number". Results have to be stored in table

Qry will have it: IIf([Field3]="Yes", Field4+Field5
I need it on the form level and vba code.  Also code should not delay the speed because I have slow network
Database-2.accdb
0
Comment
Question by:maximyshka
  • 2
3 Comments
 
LVL 119

Accepted Solution

by:
Rey Obrero earned 500 total points
ID: 39283379
0
 

Author Closing Comment

by:maximyshka
ID: 39283398
Thanks a lot
0
 

Author Comment

by:maximyshka
ID: 39283442
Sorry Capricorn, how can I do calculations using multiple fields and array?
For example 2 questions

1. If field1=Mike and Field3=Yes, Field4+Field4
2. If field1=Nik and Field 3=Yes, Field4+Field5
3. If field 1=Peter and Field3=Yes, Field4+Field5
4. If field 1=Sam and Field3=Yes, Field4+Field5

In addition, I need sum of calculated field if all 4 cases have field3=Yes".  Please help.

Please let me know if I should ask separate question.  Sorry for asking incomplete question
(I asked that as separate question
    Question ID 28170251)
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

The first two articles in this short series — Using a Criteria Form to Filter Records (http://www.experts-exchange.com/A_6069.html) and Building a Custom Filter (http://www.experts-exchange.com/A_6070.html) — discuss in some detail how a form can be…
Experts-Exchange is a great place to come for help with solutions for your database issues, and many problems are resolved within minutes of being posted.  Others take a little more time and effort and often providing a sample database is very helpf…
Learn how to number pages in an Access report over each group. Activate two pass printing by referencing the pages property: Add code to the Page Footers OnFormat event to capture the pages as there occur for each group. Use the pages property to …
In Microsoft Access, learn the trick to repeating sub-report headings at the top of each page. The problem with sub-reports and headings: Add a dummy group to the sub report using the expression =1: Set the “Repeat Section” property of the dummy…

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now