K
knyatro
Hi all! This is my 1st post...
Well, I'm trying to run a query against a linked table from Sage MAS90 in
Access, basically to import only the necessary information so that a series
of queries can be run locally. But it keeps timing out and can't figure it
out. As you see below, I set the timeout to be 120, but I guess the timeout
for "linked" table is set by something else.....any thoughts?? Thanks in
advance!
'Set query time out to be 120 seconds
Dim mydb As Database
Set mydb = DBEngine(0)(0)
mydb.QueryTimeout = 120
'Declare SQL statement for making a local table
Dim strSQL As String
TempIM2SQL = "SELECT fields" & _
"INTO TBL_Local" & _
"FROM TBL_Linked "
'Run a make table query
DoCmd.RunSQL strSQL
'Run a sub to assign primary key
Call AssignPK
Well, I'm trying to run a query against a linked table from Sage MAS90 in
Access, basically to import only the necessary information so that a series
of queries can be run locally. But it keeps timing out and can't figure it
out. As you see below, I set the timeout to be 120, but I guess the timeout
for "linked" table is set by something else.....any thoughts?? Thanks in
advance!
'Set query time out to be 120 seconds
Dim mydb As Database
Set mydb = DBEngine(0)(0)
mydb.QueryTimeout = 120
'Declare SQL statement for making a local table
Dim strSQL As String
TempIM2SQL = "SELECT fields" & _
"INTO TBL_Local" & _
"FROM TBL_Linked "
'Run a make table query
DoCmd.RunSQL strSQL
'Run a sub to assign primary key
Call AssignPK