J
John
Hi
I have below code which updates table tblClients and handles concurrency
violation if needed. Is there a way to make the code generic so for example
another table's name can be passed to the SUB?
Thanks
Regards
Private Sub UpdateDatabase()
Try
Me.tblClientsTableAdapter.Update(Me.ContactsDataSet.tblClients)
Catch dbcx As Data.DBConcurrencyException
HanldeConcurrency(dbcx.Row, ContactsDataSet.tblClientsRow)
End Try
End Sub
I have below code which updates table tblClients and handles concurrency
violation if needed. Is there a way to make the code generic so for example
another table's name can be passed to the SUB?
Thanks
Regards
Private Sub UpdateDatabase()
Try
Me.tblClientsTableAdapter.Update(Me.ContactsDataSet.tblClients)
Catch dbcx As Data.DBConcurrencyException
HanldeConcurrency(dbcx.Row, ContactsDataSet.tblClientsRow)
End Try
End Sub