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.tblClientsTa bleAdapter.Upda te(Me.ContactsD ataSet.tblClien ts)
Catch dbcx As Data.DBConcurre ncyException
HanldeConcurren cy(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.tblClientsTa bleAdapter.Upda te(Me.ContactsD ataSet.tblClien ts)
Catch dbcx As Data.DBConcurre ncyException
HanldeConcurren cy(dbcx.Row, ContactsDataSet .tblClientsRow)
End Try
End Sub
Comment