U
Ulf.Kriemeyer
Hello everybody,
I'd like to write code in order to find a specific record in a
database (*.mdf) connected to my VB Project and then have the
corresponding record being transferred to an array of string
variables. As the database consists of 11 columns (including the
primary key), and as I would like to let select a specific record by
its primary key, 10 string variables would be needed to capture the
entire database record.
By double clicking the *.xsd icon in the solution explorer, I opened
the dataset designer. After right clicking on the TableAdapter and
choosing the “TableAdapter Configuration Wizard”, I succeed to setup
a query with SQL statements (SELECT, FROM, WHERE statements), but I
didn’t arrive to write some working code to take advantage of this
query. Then I tried to use the SQL statements right in the VB code
itself, but wasn’t successful either. At the beginning I thought it
would be quite no big deal, but it turned out to be very tricky for
me.
Unfortunately, I didn’t find any useful solution at MSDN. Therefore I
would be very grateful for any advice how to write code so that a
specific database record will be copied to an array of string
variables.
Thanks in advance
Ulli
I'd like to write code in order to find a specific record in a
database (*.mdf) connected to my VB Project and then have the
corresponding record being transferred to an array of string
variables. As the database consists of 11 columns (including the
primary key), and as I would like to let select a specific record by
its primary key, 10 string variables would be needed to capture the
entire database record.
By double clicking the *.xsd icon in the solution explorer, I opened
the dataset designer. After right clicking on the TableAdapter and
choosing the “TableAdapter Configuration Wizard”, I succeed to setup
a query with SQL statements (SELECT, FROM, WHERE statements), but I
didn’t arrive to write some working code to take advantage of this
query. Then I tried to use the SQL statements right in the VB code
itself, but wasn’t successful either. At the beginning I thought it
would be quite no big deal, but it turned out to be very tricky for
me.
Unfortunately, I didn’t find any useful solution at MSDN. Therefore I
would be very grateful for any advice how to write code so that a
specific database record will be copied to an array of string
variables.
Thanks in advance
Ulli