多线程操作即可。
全局代码
Public Sub thread_sub1(ByVal obj As Object)
functions. Execute("多线程操作", obj)
End Sub
内部函数
Dim obj = args(0)
Dim cmd As New SQLCommand
Dim Count As Integer
cmd.CommandText = "DELETE FROM {订单} WHERE 产品 = 'PD01'"
Count= cmd.ExecuteNonQuery()
Messagebox.Show( "总共删除" & Count & "行!")
调用代码
Dim nthread As New System.Threading.Thread(AddressOf thread_sub1)
nthread.start(nothing)