# Re: 用data1的connect连接ODBC,太慢.....

Posted by kkcheung on June 20, 1998 at 10:36:44:

In Reply to: Re: 用data1的connect连接ODBC,太慢..... posted by 纪文和 on June 17, 1998 at 10:02:47:

: : 请教各位,本人用data1的connect中,写上ODBC;dns=mydata....等
: : 当次用上,也要connect一次,可有方法改善?

: 看不太懂您的意思, 如果您问的是每次 Form_Load 之后, Data1会重新
: Connect, 那么您可以设定 Global 的资料库变数ㄚ.

: Global db ad Database 'in Module
: 'ODBC
: Set DB = OpenDatabase("", False, False, "ODBC;DSN=XXX;UID=XXX;PWD=XXX")
: 'ACCESS
: Set DB = OpenDatabase("DATABASEPATH")
请问以上是否写在form-load内 ?

Follow Ups:

- Re: 用data1的connect连接ODBC,太慢..... 纪文和 01:09:54 6/25/98 (0)