BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Refresh dataset in owner form from a multiple-instance form

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases
View previous topic :: View next topic  
Author Message
Guest






PostPosted: Sat Aug 12, 2006 2:40 am    Post subject: Refresh dataset in owner form from a multiple-instance form Reply with quote



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
Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.