Set oDB = oSQLServer
If oCurrentDB Is Nothing Then
Set oCurrentDB = oDB
Else
If oCurrentDB
Exit Sub
End If
Set oCurrentDB = Nothing
Set oCurrentDB = oDB
End If
FillEmptyTableList (True)
If cob_sqltable
cob_sqltable
cob_sqltable_Click
End If
End Sub
Private Sub FillEmptyTableList(bFill As Boolean)
If bFill = True Then
Dim oTable As SQLDMO
For Each oTable In oCurrentDB
If oTable
cob_sqltable
End If
Next oTable
End If
[
From:http://tw.wingwit.com/Article/program/SQLServer/201311/22457.html