Private Sub cmd查询_Click()
Dim strCriteria As String
Dim strSQL As String
If IsNull(Me.公司) Then Exit Sub
strCriteria = "公司='" & Me.公司 & "'"
strSQL = "SELECT * FROM 2007实际财务数据 where " & strCriteria
Me.Ctl2007实际财务数据_子窗体.Form.RecordSource = strSQL
strSQL = "SELECT * FROM qry与预算比较 where " & strCriteria
Me.qry与预算比较_子窗体.Form.RecordSource = strSQL
End Sub