Problem with refreshing parameters in ADO
From: Culture (limivorous_at_hotmail.com)
Date: 06/22/04
- Next message: Culture: "DB Connection cannot be set by function"
- Previous message: Pengguang Wu: "ADO and Oracle PL/SQL Table"
- Next in thread: Val Mazur: "Re: Problem with refreshing parameters in ADO"
- Reply: Val Mazur: "Re: Problem with refreshing parameters in ADO"
- Messages sorted by: [ date ] [ thread ]
Date: 22 Jun 2004 09:44:24 -0700
My code (running in access 2002) is:
Private Sub GatherInfo_Click()
On Error GoTo Err_GatherInfo_Click
Const adCmdStoredProc = &H4
Dim strConnect
Dim vDatabase
Dim vUsername
Dim vPassword
Set ObjConn = New ADODB.Connection
vDatabase = "USER"
vUsername = "PASSWORD"
vPassword = "DB"
strConnect = "Provider=MSDAORA;Data Source=" & vDatabase & ";User
ID=" & vUsername & ";Password=" & vPassword & ";"
ObjConn.Open strConnect
Set StdProc = New ADODB.Command
Set StdProc.ActiveConnection = ObjConn
StdProc.CommandType = adCmdStoredProc
StdProc.CommandText = "P_INFO.RUNEXPORT"
StdProc.Parameters.Refresh
......
End Sub
The problem is, when it gets to StdProc.Parameters.Refresh it errors
with
"Unspecified error"
Whatever i do i can't seem to refresh the parameters....
Could it also be to do with the references????
Thanks in advance :)
Craig
- Next message: Culture: "DB Connection cannot be set by function"
- Previous message: Pengguang Wu: "ADO and Oracle PL/SQL Table"
- Next in thread: Val Mazur: "Re: Problem with refreshing parameters in ADO"
- Reply: Val Mazur: "Re: Problem with refreshing parameters in ADO"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|
|