[Last Call] Learn about multicloud storage options and how to improve your company's cloud strategy. Register Now

x
?
Solved

Form Calculations in Access 2010

Posted on 2013-06-27
3
Medium Priority
?
518 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 120

Accepted Solution

by:
Rey Obrero (Capricorn1) earned 2000 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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

We live in a world of interfaces like the one in the title picture. VBA also allows to use interfaces which offers a lot of possibilities. This article describes how to use interfaces in VBA and how to work around their bugs.
Instead of error trapping or hard-coding for non-updateable fields when using QODBC, let VBA automatically disable them when forms open. This way, users can view but not change the data. Part 1 explained how to use schema tables to do this. Part 2 h…
What’s inside an Access Desktop Database. Will look at the basic interface, Navigation Pane (Database Container), Tables, Queries, Forms, Report, Macro’s, and VBA code.
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…

656 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