473,386 Members | 1,810 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.

Data exchange - MDI - Child - Parent

Hi, I need your advice for this.

I would like to have an object that access the DataBase, let's name it
objDB. This objDB object would be held by the MDI Parent.

The MDI Child would use the objDB to execute SQL query and get recordset
result.

Am I right to store this objDB in the MDI Parent? Because many MDI
Child could use it.

Thanks a lot :)

Nov 20 '05 #1
2 1083
why not ;) (you could also put it in a module)

be sure to declare it as a public shared var

hope it helps

eric

"Mart" <gu***@guest.com> wrote in message
news:hH***************@nntp-post.primus.ca...
Hi, I need your advice for this.

I would like to have an object that access the DataBase, let's name it
objDB. This objDB object would be held by the MDI Parent.

The MDI Child would use the objDB to execute SQL query and get recordset
result.

Am I right to store this objDB in the MDI Parent? Because many MDI
Child could use it.

Thanks a lot :)

Nov 20 '05 #2
In a module, very nice. And you know what, I did it many time for other
applications. And now because I involve DB and MDI stuff, it's like if
I had never done that (a glitch in my brain? hehehe).

So this is what I will do, I will declare it public in a module.

Thank you EricJ, your tip is appreciated :)

Mart
EricJ wrote:
why not ;) (you could also put it in a module)

be sure to declare it as a public shared var

hope it helps

eric

"Mart" <gu***@guest.com> wrote in message
news:hH***************@nntp-post.primus.ca...
Hi, I need your advice for this.

I would like to have an object that access the DataBase, let's name it
objDB. This objDB object would be held by the MDI Parent.

The MDI Child would use the objDB to execute SQL query and get recordset
result.

Am I right to store this objDB in the MDI Parent? Because many MDI
Child could use it.

Thanks a lot :)



Nov 20 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Joe D | last post by:
I think this is a simple question. But I am new to JS. Here is what I want to do: From a parent window, open a popup window (child) to get data from user, then user submit the request, close the...
0
by: Bob Rundle | last post by:
I'm using the XML Schema Designer to create a dataset. I can't get the relationships to work from the XML. To get them to work, I have to explicitly code them in. What's wrong here? Here is...
1
by: AD | last post by:
I have a parent-child relationship in db . for a parent P1 there are 4 children c1 c2 c3 c4 I want to show the data in data grid. I want the first row of the datagrid show the parent row and...
1
by: runningdog | last post by:
Can one use the xmlDataDocument class to generate an xml document so that relational data is nested. eg. <root> <parent>row 1 <child> row 1</child> <child> row 2</child> </parent>...
2
by: dbuchanan | last post by:
Hello, Windows forms & database What are the considerations when choosing how to display reference information from the calling form? What is recommended? Table1 is the parent of Table2. ...
2
by: Bob | last post by:
I got three related datagrid views one parent and two children of the same. The two child tables contain many thousands of records and some of the contents are bitmap files in a sql server...
9
by: Anil Gupte | last post by:
After reading a tutorial and fiddling, I finally got this to work. I can now put two tables created with a DataTable class into a DataRelation. Phew! And it works! Dim tblSliceInfo As New...
4
by: Alexander Adam | last post by:
Hello folks, I got a few question on some basic data structure stuff. Sorry if those questions might sound too easy or such but after googling a lot I didn't find a real answer to all those...
1
by: Bob Johnson | last post by:
..NET 3.5, Windows Forms app: My objective is to display parent/child data in two ComboBox controls, such that when a parent item is selected in one combo box, associated child items appear in the...
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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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...
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

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.