473,386 Members | 1,706 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

how can when i close the child form requery the parent form

Dear all,

I would like to have your help..

I have a main a parent form which named 'frmCustomers" and a child form which called "frmCustomerInvoice". In child form a have some calculated fields which are the same with some in parent form. I wanted, when the calculated field in child form updated 1) to close child form and 2) to requery the parent's related fields.

Moreover,

I wanted to work as i ask above but when any deletions persist on child form, the parent form to be requery and going to last record..

Please...helps..

Thanks in advanced
Jun 11 '14 #1
1 1237
twinnyfo
3,653 Expert Mod 2GB
gstylianou,

Are you talking about an actual "Parent-Child" set of forms--that is, the child form is embedded as a sub-form in the Parent Form? If this is the case, you can't close a child Form when it is open in a Parent Form. You simply can't do it.

However, if you are talking about another form that opens from a command button or some other event on one form, that is another.

If the latter is the case (which I think it is), then the simplest way is to add code in the "child" form in the On Close event which references the "Parent" form to requery. This is as simple as this:

Expand|Select|Wrap|Line Numbers
  1. Forms.FormName.Form.Requery
The second part of your question may be more complicated. What have you tried so far in your attempts to accomplish this? We can guide you through solutions if we have something to start with.

Hope this hepps!
Jun 11 '14 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: developer | last post by:
I have a form with a menu on the top. This menu show another form. I want to open this second form maximized inside the parent form just below the menu of the parent form. (Like Microsoft...
2
by: Chandru | last post by:
hi I want to know how to pass values from different forms. That is, i created one parent form. from there i opened child form modeless way. Once i close the child form i need some value from...
1
by: Denon | last post by:
How to close child browser while parent close? Is there any sample javascript? Targeted browser is IE only Thanks for any advice! Den
1
by: Tony | last post by:
Hi VB.Net Gurus. Initial MDI Child form loads fine. exp. Dim objChild2 As New Form2() objChild2.MdiParent = Me objChild2.Show() MDI Child unloads just fine. Exp.
1
by: HongPuay | last post by:
Hey guys, I am developing a SMS application using VB.net recently. I have a question here. When I click one of the buttons in my parent form, I want its child form(named as PhoneBook) to be...
1
by: jiaudheen | last post by:
hi i have a multiline textbox and a button in parent form. in the child form i have text boxes,comboboxes,button. the thing is i click the button in the parent form ,the child form opens. i fill the...
6
by: dav61000 | last post by:
I have a parent form that uses a Treeview Control and I would like to pass the node selected to a child form where the user will add update or delete the record selected using a dataset. Is there a...
7
HaLo2FrEeEk
by: HaLo2FrEeEk | last post by:
I've got an inherited panel on my form which overrides WndProc() and catches the 0x84 (WM_NCHITTEST) message. I do some processing on it and I'd like to know if there's a way to send that message,...
2
by: Melanie Cohl | last post by:
I would like to close a child window I opened from the parent using setTimout. I have tried these functions below, i succeed to open the window, but failed in closing it using the setTimeout...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.