[DUG] Editing date from two tables

Stephen Barker Steve at webdata.co.nz
Tue Dec 8 11:59:31 NZDT 2009


Also, depending on your database and tdataset derivative capabilities, look
for methods like:
 
.FlushBuffers  (on the table just updated)
.Refresh (on the other table)
.GotoCurrent  (to synchronise the cursors if needed)
 
 
Steve


  _____  

From: Marshland Engineering [mailto:marshland at marshland.co.nz] 
Sent: Monday, 7 December 2009 1:01 p.m.
To: delphi at delphi.org.nz
Subject: [DUG] Editing date from two tables


I have a table called tblJob. 

I have two dbgrids displaying the data from tblJobs, tblJobByCustomer and
tblJobByDay. 

I have an editing Form for changing the data using dbEditBox's. 
 
How can I use the same Form for editing both tables ? It's like I need to
set the form property to the relevant DataSource rather than each dbEditBox,
 
and how do I find the data record in tblJobByDay when looking at
tblJobByCustomer. They are actually the same data as stored in tblJob


Thanks Wallace. 

No virus found in this incoming message.
Checked by AVG - www.avg.com
Version: 8.5.426 / Virus Database: 270.14.72/2511 - Release Date: 12/06/09
07:30:00




-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://listserver.123.net.nz/pipermail/delphi/attachments/20091208/a942da45/attachment.html 


More information about the Delphi mailing list