Just change in cycle DataSource for all TDBEdit controls in your form. Edward Koryagin
--- On Mon, 7/12/09, Marshland Engineering <marshl...@marshland.co.nz> wrote: > From: Marshland Engineering <marshl...@marshland.co.nz> > Subject: [DUG] Editing date from two tables > To: delphi@delphi.org.nz > Received: Monday, 7 December, 2009, 1:00 PM > > > > > > > > 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. > > > -----Inline Attachment Follows----- > > _______________________________________________ > 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 _______________________________________________ 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