Ok so can I do that within the INSERT query method itself? Because right now I call tableAdapter.customInsertMethod(xxx,xxx,xxx,xxx) and I believe it returns the number of rows affected, because it returns 1 every time. But the VS wizard adds a select statement that I rewrote to select the last ID. The only problem is I don't know how to access it, so how do I get at the value returned from the select statement in my method?