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:marshl...@marshland.co.nz] Sent: Monday, 7 December 2009 1:01 p.m. To: delphi@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
_______________________________________________ NZ Borland Developers Group - Delphi mailing list Post: delphi@delphi.org.nz Admin: http://delphi.org.nz/mailman/listinfo/delphi Unsubscribe: send an email to delphi-requ...@delphi.org.nz with Subject: unsubscribe