I have three fields F1,F2 & F3. The first two fields are filled with numbers. How can I automatically set the value for the third field “F3 = F1 – F2” like in Excel? Perhaps it can be done with macros?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Consider whether
F3must be an actual field in your table. Its value is derived from a simple computation, so you can perform that computation with a query field expression whenever you need it.If you have a compelling reason why
F3must be a real field, you can execute anUPDATEstatement to store the values.The first approach is generally preferred because it ensures the computed
F3values will always be consistent with the currentF1andF2values. If you don’t storeF3, you needn’t change storedF3values in response to changes inF1and/orF2values.