Solved

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

Posted on 2014-09-06
2
879 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
2 Comments
 
LVL 84

Accepted Solution

by:
Scott McDaniel (Microsoft Access MVP - EE MVE ) earned 500 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

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

Entering a date in Microsoft Access can be tricky. A typo can cause month and day to be shuffled, entering the day only causes an error, as does entering, say, day 31 in June. This article shows how an inputmask supported by code can help the user a…
As tax season makes its return, so does the increase in cyber crime and tax refund phishing that comes with it
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.
In Microsoft Access, when working with VBA, learn some techniques for writing readable and easily maintained code.

803 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