# 一个DATA CONTROL可以控制TABLE

Posted by Steve on February 10, 1999 at 14:16:55:

我在王国荣的VB DATABASE既书入面，见到可以用一个DATA
CONTROL控制两个TABLE程式码如下：
Dim SQL As String
SQL = "Select * From [oeproduct] Where [oe_code]="
SQL = SQL & Data1.Recordset("oe_code")
Data2.RecordSource = SQL
Data2.Refresh
End Sub
但是我做不到，在行到Data2.Refresh时出了个ERROR：
Too Few Parameters.expected 1
请问各位怎可解决呢，我做不到呀，请帮帮忙

Follow Ups:

- Re: 一个DATA CONTROL可以控制TABLE AndyLin 09:48:25 2/11/99 (0)