I'm using MS Access 2003.
I need to create a temporary pass-thru query with Type = dbQSPTBulk. Here's my code:
However, the last line of code fails to compile with the error "Can't assign to read-only property".
Is there any other way to do this?
Why do I want to do this, you ask? Because I need to replicate an existing *saved* pass-thru query as a temp query, and when I examine the saved query's properties, it says that its Type = 144, which matches the constant dbQSPTBulk. The above code (minus the last line) produces a QueryDef with Type = 0.
Or does the Type really matter in this case?
Thanks for any help you can give.
Wayne
I need to create a temporary pass-thru query with Type = dbQSPTBulk. Here's my code:
Code:
' Create a temporary pass-thru query
Set qdTemp = db.CreateQueryDef("")
' Set properties of temp pass-thru query
qdTemp.Connect = strConnectString
qdTemp.ODBCTimeout = lngOdbcTimeout
qdTemp.SQL = pstrSQL
qdTemp.ReturnsRecords = False
qdTemp.Type = dbQSPTBulk
However, the last line of code fails to compile with the error "Can't assign to read-only property".
Is there any other way to do this?
Why do I want to do this, you ask? Because I need to replicate an existing *saved* pass-thru query as a temp query, and when I examine the saved query's properties, it says that its Type = 144, which matches the constant dbQSPTBulk. The above code (minus the last line) produces a QueryDef with Type = 0.
Or does the Type really matter in this case?
Thanks for any help you can give.
Wayne