J
John Smith
Hello all:
I have a few questions regarding ADO.NET data access:
1. I have a DataSet that gets populated w/several tables,
but I would like to display a certain column in one of
those tables by pulling the related records from another
table. To put this clearer I have two tables in a
database, one w/shipping info and one w/drivers. They are
related by a driver id in each one. But how do I display
the shipping info w/a driver name that it pulls from the
drivers table rather than displaying the driver id?
2. What is the best way to create a connection that is
shared across multiple forms? Right now I have my main
form create a connection that I then feed to the other form
by means of a public variable. Is this how it should be done?
Thanks a bunch,
John
I have a few questions regarding ADO.NET data access:
1. I have a DataSet that gets populated w/several tables,
but I would like to display a certain column in one of
those tables by pulling the related records from another
table. To put this clearer I have two tables in a
database, one w/shipping info and one w/drivers. They are
related by a driver id in each one. But how do I display
the shipping info w/a driver name that it pulls from the
drivers table rather than displaying the driver id?
2. What is the best way to create a connection that is
shared across multiple forms? Right now I have my main
form create a connection that I then feed to the other form
by means of a public variable. Is this how it should be done?
Thanks a bunch,
John