Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Access 2103 Web App: How to create a data macro calculation to update a field

Posted on 2014-09-06
2
Medium Priority
?
958 Views
Last Modified: 2014-09-06
Quick & simple; have to fields and want the third to calculate and then update a third field.  The key if I'm asking right is the 3rd field exists in the table, I just want it "filled in" based on values of the other two fields.

Advice to date is use a data macro.  Could use a little more step by step feedback...
0
Comment
Question by:VirtualKansas
[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 Comments
 
LVL 85

Accepted Solution

by:
Scott McDaniel (Microsoft Access MVP - EE MVE ) earned 2000 total points
ID: 40307545
Better advice would be to NOT store calculated data, and instead use a query to provide that calculation "on the fly" - something like:

SELECT Field1, Field2, Field1 + Field2 AS [TotalField] FROM YourTable
0
 

Author Closing Comment

by:VirtualKansas
ID: 40307761
Exactly how we do it on desktop.  ...and to add luster to this advice, since we're (all) new to the app. db, we experimented with macros and found our limits in that testing a macro to update the actual field value was inadvertently creating new blank records.

In the interim, to display in the web view we simply created a new control that's source is the two fields for the calculation and disabled it in format.  

The calculation is done in the view and presented in the view in a "read only" field.  Now we get to exercise creating queries in the app. but short term we've got the result for the app. view and seems like the proper method.

What would be super helpful, since we have many views that will benefit from this calculated field, would be to simply copy & paste to the views, vs. having to edit each view once we conquer a little bugger like this one.  For now, thank you for some good validation and reminder of the basics...
0

Featured Post

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

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

This post looks at MongoDB and MySQL, and covers high-level MongoDB strengths, weaknesses, features, and uses from the perspective of an SQL user.
In this blog post, we’ll look at how ClickHouse performs in a general analytical workload using the star schema benchmark test.
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…
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…

670 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