somthing like this string iSQL = "INSERT INTO recipes (recipe_name, catagory_id, prep_time, instructions, comment) " +"Select Top 1 '" + form2.tbAddName.Text + "', catagory_id, " + qSQL + ", '" + form2.tbAddTime.Text + "', '" + form2.tbAddIns.Text + "', '" + form2.tbAddComment.Text + "'," from catagories WHERE catagory_name = '" + form2.cbCatagory.SelectedItem.ToString() + "'"
I think there is some issues with the formating, but i hope you got the idea how to do it. you need to do select query, and specify all the values of the textbox , in that select query and it should work fine.Chirag