SnoopFrogg
MIS
I am writing data values to an Access database. For every set of values, I am creating a new row in the database. I've noticed that occasionally some previously added rows are overwritten by new data that I am writing to the database. Is there a way to specify that new data should only be added after all other records (i.e., can I specify that the "pointer" should always be moved after the last record)?
The following is the code that inserts the row into the database:
I've looked through the MSDN API briefly but didn't see anything that caught my eye.
[purple]
SnoopFrogg
MCSA+Security - Windows Server 2003
[/purple]
The following is the code that inserts the row into the database:
Code:
myAccessCommand = new OleDbCommand(sqlInsertStatement, conn);
myAccessCommand.CommandType = CommandType.Text;
try
{
int numRows = myAccessCommand.ExecuteNonQuery();
}
catch(Exception ex)
{
Console.WriteLine("Failed to insert into database. The error is: " + ex);
}
I've looked through the MSDN API briefly but didn't see anything that caught my eye.
[purple]
SnoopFrogg
MCSA+Security - Windows Server 2003
[/purple]