Solved

calculated field

Posted on 2007-04-10
4
316 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
Comment Utility
In the OnCalcFields event.
0
 
LVL 26

Accepted Solution

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

Expert Comment

by:Computer101
Comment Utility
Forced accept.

Computer101
EE Admin
0

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
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…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

762 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

8 Experts available now in Live!

Get 1:1 Help Now