W
William E Voorhees
I'm updating an Access database in a windows multi-user environment.
I'm using disconnected data
I read data from an Access Data table to a data object
I update the data object from a windows form
I save the data from the data object to the Access Data table using a data
adapter as follows:
adpTeam.UpdateCommand = New OleDbCommand(sqlUpdate)
adpTeam.UpdateCommand.Connection = aConnection
adpTeam.UpdateCommand.ExecuteNonQuery()
Since I'm not using datasets, how do I use optimistic concurrency and throw
a concurrency exception if one occurs?
I'm using disconnected data
I read data from an Access Data table to a data object
I update the data object from a windows form
I save the data from the data object to the Access Data table using a data
adapter as follows:
adpTeam.UpdateCommand = New OleDbCommand(sqlUpdate)
adpTeam.UpdateCommand.Connection = aConnection
adpTeam.UpdateCommand.ExecuteNonQuery()
Since I'm not using datasets, how do I use optimistic concurrency and throw
a concurrency exception if one occurs?