DaveD3 0 Newbie Poster

I am new to .Net and I am having some problems. I have read the Kate Gregory book for visual C++ .net and successfully implemented her application to look up employees in a database table. I followed the same format to write an application I am working on. The adapter loads the entire table and it shows in the datagrid just fine. When I make a change and attempt to update the dataset I am getting SQL errors from the adapter. According to the Gregory book, when the adapter is setup to "SELECT * FROM <some table>" the adapter automatically creates the Insert, Update, and Delete functions. One error indicated that a primary key was needed so I implemented that, now I get that there are missing parameters for the update function. Since I can not see the SQL that is being used I have no idea what is wrong. When I created the primary key I used an identy field, I don't know if that is the issue. Any info on how to debug this would be appreciated. Thanks! My Code is below:

OleDbDataAdapter* adapter = new OleDbDataAdapter("SELECT * FROM ATC", ConnStr);
	OleDbCommandBuilder* cb = new OleDbCommandBuilder(adapter);
	try
	{
		adapter->Update(newrecords, "ATC");
	}
	catch (OleDbException* e)
	{
		Console::WriteLine(e->Message);
	}