Solved

Acess, Field in Form View not calculating on key enter

Posted on 2011-03-09
6
293 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
6 Comments
 
LVL 75

Accepted Solution

by:
DatabaseMX (Joe Anderson - Access MVP) earned 250 total points
Comment Utility
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
Comment Utility
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
Comment Utility
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

Expert Comment

by:DatabaseMX (Joe Anderson - Access MVP)
Comment Utility
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
Comment Utility
Thanks.  Your clarification confirmed that my guess was correct.  All is working fine now.  Thanks you again.

oneputt
0

Featured Post

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

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…
A simple tool to export all objects of two Access files as text and compare it with Meld, a free diff tool.
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
With Microsoft Access, learn how to specify relationships between tables and set various options on the relationship. Add the tables: Create the relationship: Decide if you’re going to set referential integrity: Decide if you want cascade upda…

771 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

11 Experts available now in Live!

Get 1:1 Help Now