# Data物件与ODBC连结

Posted by YS on October 29, 1998 at 02:57:57:

在使用DATA物件(元件)时，该如何透过ODBC连结资料库，并利用SQL语法来选择资料.......
如下:
data1.RecordSource = "Select * from DB" (DB为TABLE NAME)

set data1.Recordset = gdbCurrentDB.OpenRecordset(data1.RecordSource, dbOpenDynaset, dbSQLPassThrough)
(资料库)

为何会出现形态错误的讯息.......

请问该如何解决，请各位高手帮帮忙，THANKS............

Follow Ups:

- Re: Data物件与ODBC连结 Keven 08:10:57 10/29/98 (0)