Object doesn't support this property or method : 'DTSGlobalVariables(...).Value.Open 
Author Message
 Object doesn't support this property or method : 'DTSGlobalVariables(...).Value.Open

    Since you're dealing with an object you have to use the Set statement:

set DTSGlobalVariables("adoConnection").Value= CreateObject
("ADODB.Recordset")


Quote:
> I created an activeX Script Task in a DTS, from SQL 7, with this VB script
> code :

> Function Main()

> DTSGlobalVariables("adoConnection").Value= CreateObject
("ADODB.Recordset")
> DTSGlobalVariables("adoConnection").Value.open  strsql, "DRIVER={SQL
> Server};Server=DUBLIN;UID=sa;PWD=;Database=AktieTool"

> end function

> And I received this error message :

> Have you an idea to resolve this problem ?
> Thank you very much .



Sat, 08 Feb 2003 03:00:00 GMT  
 Object doesn't support this property or method : 'DTSGlobalVariables(...).Value.Open
It's missing a Set...

Function Main()

Set DTSGlobalVariables("adoConnection").Value= CreateObject ("ADODB.Recordset")
DTSGlobalVariables("adoConnection").Value.open  strsql, "DRIVER={SQL
Server};Server=DUBLIN;UID=sa;PWD=;Database=AktieTool"

end function

--
Michael Harris
Microsoft.MVP.Scripting
--

Quote:

> I created an activeX Script Task in a DTS, from SQL 7, with this VB script
> code :

> Function Main()

> DTSGlobalVariables("adoConnection").Value= CreateObject ("ADODB.Recordset")
> DTSGlobalVariables("adoConnection").Value.open  strsql, "DRIVER={SQL
> Server};Server=DUBLIN;UID=sa;PWD=;Database=AktieTool"

> end function

> And I received this error message :

> Have you an idea to resolve this problem ?
> Thank you very much .



Sat, 08 Feb 2003 03:00:00 GMT  
 Object doesn't support this property or method : 'DTSGlobalVariables(...).Value.Open

Quote:

>     Since you're dealing with an object you have to use the Set statement:

Oooops... I really should read the replies first ;-)...

--
Michael Harris
Microsoft.MVP.Scripting
--



Sat, 08 Feb 2003 03:00:00 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. Object doesn't support this property or method

2. Object doesn't support this property/method??????

3. Object doesn't support this property or method

4. IE 5.0: Object doesn't support property or method

5. Object doesn't support this property or method

6. Object doesn't support this property or method

7. Sample code: Object doesn't support this property or method

8. Object doesn't support this property or method

9. Object doesn't support this property or method

10. ASP Error on Session.Contents : Object doesn't support this property or method

11. Object doesn't support this property or method

12. Help!- 438- Object doesn't support this property or method

 

 
Powered by phpBB® Forum Software