当我运行这部分程序时,不断弹出运行时错误 3709。有谁知道我能做些什么来修复它?
Public cn As New ADODB.Connection
Public rs As New ADODB.Recordset
Public CustomerID As Integer
Public CustFirstName As String
Public CustLastName As String
Sub GetCustomerList()
Dim strSQL As String
Dim Customers As Variant
' Import customer info and use it to populate the list box.
' After frmcustomers is unloaded, we will know the CustomerID
' and Customer Name of the selected order.
strSQL = "SELECT CustomerID, CustFirstName, CustLastName FROM Customers"
rs.Open strSQL, cn
frmCustomers.Show
rs.Close
End Sub
谢谢,
杰米