Solved

calculated field

Posted on 2007-04-10
4
318 Views
Last Modified: 2010-04-06
got 1 field in adotable called 'working_days' (integer)
inserted into a table calculated field called 'hours' (integer)
how do I make adotable calculate:  'hours'='working_days' / 8

0
Comment
Question by:Vrtnar
  • 2
4 Comments
 
LVL 26

Expert Comment

by:EddieShipman
ID: 18882497
In the OnCalcFields event.
0
 
LVL 26

Accepted Solution

by:
EddieShipman earned 50 total points
ID: 18882530
procedure TForm1.ADOTable1CalcFields(DataSet: TDataSet);
begin
  ADOTable1Hours.AsInteger := ADOTable1Working_Days.AsInteger div 8;
end;
0
 
LVL 1

Expert Comment

by:Computer101
ID: 21156545
Forced accept.

Computer101
EE Admin
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Syntax Check Delphi Seattle IOS app without MAC ? 1 104
Delphi Mdi application Child forms get behind control 7 269
select query - oracle 16 100
Find and Replace Stream with 0s 8 69
Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

792 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