在ADP中窗体数据来源怎么引用列表框的值?
我设置了两个存储过程(存储过程经过测试没有问题),现在rs和rst中没有记录不知哪儿出了问题.
代码如下:
Private Sub Form_Load()
Dim rst As New ADODB.Recordset
Dim rs As New ADODB.Recordset
Set rst = CurrentProject.Connection.Execute("exec GPSAdmin.SO_DCCXN '" & Me.List0 & "'")
Set rs = CurrentProject.Connection.Execute("exec GPSAdmin.SO_DCCX'" & Me.List0 & "'")
Set Me.Form.Recordset = rst
Me.Requery
Set Me.Dictionary_Sub.Form.Recordset = rs
Me.Dictionary_Sub.Form.Requery
DoCmd.Restore
Me.Requery
End Sub