Private Sub Command2_Click()
Dim Rs As New ADODB.Recordset
Dim strSQL As String
strSQL = "SELECT * FROM 表1 WHERE 代码 = '" & Me.txt & "'"
Set Rs = GetRS(strSQL)
If Not Rs.EOF Then
Me.子窗体.Form.RecordSource = Rs
End If
Rs.Close
Set Rs = Nothing
End Sub
以下是引用djhong在2006-9-2 17:02:00的发言:
请教如何改 Me.子窗体.Form.RecordSource = Rs
这条语句.对dao不了解
欢迎光临 Office中国论坛/Access中国论坛 (http://www.office-cn.net/) | Powered by Discuz! X3.3 |