aduserclient and vba (1 Viewer)

DevAccess

Registered User.
Local time
Today, 02:11
Joined
Jun 27, 2016
Messages
321
I am getting below error 3001
"Arguments are of the wrong type, are out of acceptable range, or are in conflict with one another"
on line number
adoCon.CursorLocation = adUseClient

I am using excel vba.

Sub SaveAsBinary()

Dim adoStream As Object
Dim adoCmd As Object
Dim strFilePath As String
Dim adoCon As Object
Const strDB As String = "" 'Database name
Const strServerName As String = "" 'Server Name

Set adoCon = CreateObject("ADODB.Connection")
Set adoStream = CreateObject("ADODB.Stream")
Set adoCmd = CreateObject("ADODB.Command")

'--Open Connection to SQL server
adoCon.CursorLocation = adUseClient

Please assist
 

arnelgp

..forever waiting... waiting for jellybean!
Local time
Today, 17:11
Joined
May 7, 2009
Messages
19,241
Just stick to the orig post. They are same in substance.
 

Users who are viewing this thread

Top Bottom