超时odbc问题

问题描述:

我正在使用VBA访问2010来创建包含大量数据的查询,但是我无法使用以下代码设置odbc超时:



Dim mydb作为数据库

设置mydb = CurrentDb()

mydb.QueryTimeout = 0



可以我直接修改了"regedit"。为每种类型的查询设置它?哪个是设置超时的正确VB代码?



谢谢

T

Hi,I'm using VBA with access 2010 to create a query with a lot of data, but I can't set the odbc timeout with this code:

Dim mydb As Database
Set mydb = CurrentDb()
mydb.QueryTimeout = 0

Can I modify directly "regedit" to set it for each type of query??Which is the correct VB code for set the timeout?

Thank you

T

如果超时= 0,那么查询将永远不会有时间运行?
If the timeout =0 then the query would never have time to run?