Guest
|
Posted: Sat Aug 12, 2006 2:40 am Post subject: Refresh dataset in owner form from a multiple-instance form |
|
|
Ok, been driving myself crazy on this one for a few days. I'm fairly
new to the Delphi/Pascal language, so be kind.
Here's my situation:
I have a main form that has a DBGrid of Items (we'll call this Form1).
On doubleclick, a new form (Form2) is opened to edit a specific record
(item). There can be multiple-instances of Form2 (user can edit
multiple items at once).
On this new form, there is another DBGrid with some Item Prices. Again,
on double-click, a new form (Form3) is created to edit the item price.
Once I have finished editing my item price (on Form3), how do I access
the specific instance of Form2 to call a tblPrice.Refresh?
Right now I have a Form2.tblPrice.Refresh on my Form3 close. This works
OK, until there is more than 1 instance of Form2 open. Then the DBGrid
just stops updating. I know I need to specify the instance of the form
that called the Form3, but have no idea how.
Any Help?
Thanks
Michael |
|