Ich hab folgenden Code und er geht nicht. Kann man das nicht so machen?
Ich will �ber das innere SELECT eine Nummer aus der DB holen, die dann
an dieser Stelle f�r das INSERT gebraucht wird.
Geht�s anders?
myCommand = new OleDbCommand("INSERT INTO tbPLZ (PLZ, HV) VALUES (@PLZ,
(SELECT VertreterNr FROM tbAdressen WHERE ID = @ID) )", myConnection);
myCommand.Parameters.Add("@PLZ",txtNeuePLZ.Text);
myCommand.Parameters.Add("@ID",id);
_______________________________________________
Asp.net mailing list
[EMAIL PROTECTED]
http://www.glengamoi.com/mailman/listinfo/asp.net