[Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Acess, Field in Form View not calculating on key enter

Posted on 2011-03-09
6
Medium Priority
?
301 Views
Last Modified: 2012-05-11
I have a field named [Cost 1] with the following property  =[JCOST1]/(1-[MUP1]) where I enter a value into [JCOST1] which is then divided by the value I enter into [MUPI1].  In my earlier version of Access when I entered a value in [JICOST1] the value in [MUP1] would instantly appear when I clicked "Enter".  In Access 2010 it doesn't; I have to page up two or three records and then back to the new record for the calculation to take effect.

Any suggestions?

oneputt
0
Comment
Question by:2putt
  • 2
  • 2
5 Comments
 
LVL 75

Accepted Solution

by:
DatabaseMX (Joe Anderson - Microsoft MVP, Access and Data Platform) earned 750 total points
ID: 35097715
Although you should not have to ... you may need to use Me.ReCalc in the Afterupdate Event of those two text boxes where you are entering values ... eg:

Private Sub JCOST1_AfterUpdate()
   Me.ReCalc
End Sub

mx
0
 
LVL 19

Expert Comment

by:MINDSUPERB
ID: 35097737
Kindly check your statement for you might want to appear the value automatically to [Cost 1] not [MUP1]?

If you are really referring to MUP1, then there might be a code or macro in the enter event of [JICOST1]  that trigger to display the value at [MUP1] which might not be supported by 2010.

You may check this out.

Sincerely,
Ed
0
 

Author Closing Comment

by:2putt
ID: 35099894
Being that I don't know anything about code, at first I copied the entire code into the space and kept getting an error.  Finally I just copied the middle line of the code and it worked perfectly.  Thank you very much for your assistance.
0
 
LVL 75
ID: 35099939
You are welcome.

Sorry ... I should have noted ".. which will look like this ..." ... ie, just enter the one line of code.

mx
0
 

Author Comment

by:2putt
ID: 35100251
Thanks.  Your clarification confirmed that my guess was correct.  All is working fine now.  Thanks you again.

oneputt
0

Featured Post

Prep for the ITIL® Foundation Certification Exam

December’s Course of the Month is now available! Enroll to learn ITIL® Foundation best practices for delivering IT services effectively and efficiently.

Question has a verified solution.

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

Microsoft Access is a place to store data within tables and represent this stored data using multiple database objects such as in form of macros, forms, reports, etc. After a MS Access database is created there is need to improve the performance and…
This article shows how to get a list of available printers for display in a drop-down list, and then to use the selected printer to print an Access report or a Word document filled with Access data, using different syntax as needed for working with …
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…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…
Suggested Courses

810 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