Solved

Form Calculations in Access 2010

Posted on 2013-06-27
3
507 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

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article is a continuation or rather an extension from Cascading Combos (http://www.experts-exchange.com/A_5949.html) and builds on examples developed in detail there. It should be understandable alone, but I recommend reading the previous artic…
Describes a method of obtaining an object variable to an already running instance of Microsoft Access so that it can be controlled via automation.
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 …
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

864 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

19 Experts available now in Live!

Get 1:1 Help Now