Public Function DeleteSelected() As Boolean Dim oC As New OleDbCommand Dim i As Integer Try oC = oleCnn.CreateCommand oC.CommandText = CreateDeleteStatement() oC.Connection.Open() i = oC.ExecuteNonQuery() Catch ex As Exception MessageBox.Show(ex.Message.ToString) Finally oC.Connection.Close() oC.Dispose() End Try If i > 0 Then Return True Else Return False End If End Function
|I'm trying to format textboxes for each record on a form based on comparative values of two different fields||13||23|
|Variable Event ?||3||23|
|From msAccess SaveAs an excel file SILENTLY without opening excel||4||29|
|Format Meeting Request through VBA||5||18|
Join the community of 500,000 technology professionals and ask your questions.
Connect with top rated Experts
21 Experts available now in Live!