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

Posted by 纪文和 on June 25, 1998 at 01:09:54:

In Reply to: Re: 用data1的connect连接ODBC,太慢..... posted by kkcheung on June 20, 1998 at 10:36:44:

: : Global db ad Database 'in Module

不管是单一Form或很多Form,只要在第一个Form中做一次即可

Private Sub Form_Load()
'ODBC
Set DB = OpenDatabase("", False, False, "ODBC;DSN=XXX;UID=XXX;PWD=XXX")
'ACCESS
Set DB = OpenDatabase("DATABASEPATH")
End Sub

Follow Ups: