D
Dave
Let's say that you wanted to perform an INSERT, but that one of the
values in the insert had to be selected from another table based on
the text property of a TextBox? Something like this:
insert into visit_table (date, id) values (@DATE, (select top 1 id
from id_table where name = NameBox.Text))
What would the InsertCommand for a SQLDataSource look like in VB.NET
to do this? I have beat my head on it for hours with no luck.
Dave
values in the insert had to be selected from another table based on
the text property of a TextBox? Something like this:
insert into visit_table (date, id) values (@DATE, (select top 1 id
from id_table where name = NameBox.Text))
What would the InsertCommand for a SQLDataSource look like in VB.NET
to do this? I have beat my head on it for hours with no luck.
Dave