Eviews to Access
Posted: Wed Feb 08, 2012 8:00 am
I am having trouble establishing a link from Eviews to Access.
Dim cmdpat As ADODB.Connection
Dim cmdGetDB As ADODB.Command
Dim cmdDBParam As ADODB.Parameter
Dim rst As ADODB.Recordset
Dim eviewsstr, connstr As String
On Error GoTo ErrorHandler
Set cmdpat = New ADODB.Connection
connstr = "Provider=EviewsOleDbProvider.EviewsProv;" & _
"Path=c:\recessions.wf1; Include ID Series=False"
cmdpat.Open connstr
Set cmdGetDB = New ADODB.Command
Set cmdGetDB.ActiveConnection = cmdpat
eviewsstr = "@date gdpr_1 @smpl @all"
cmdGetDB.CommandText = eviewsstr
Set rst = cmdGetDB.Execute()
The eviewsstr takes on a value of 188 when I run the program but the recordset always turns up empty. Any help would be appreciated.
Thanks!
Dim cmdpat As ADODB.Connection
Dim cmdGetDB As ADODB.Command
Dim cmdDBParam As ADODB.Parameter
Dim rst As ADODB.Recordset
Dim eviewsstr, connstr As String
On Error GoTo ErrorHandler
Set cmdpat = New ADODB.Connection
connstr = "Provider=EviewsOleDbProvider.EviewsProv;" & _
"Path=c:\recessions.wf1; Include ID Series=False"
cmdpat.Open connstr
Set cmdGetDB = New ADODB.Command
Set cmdGetDB.ActiveConnection = cmdpat
eviewsstr = "@date gdpr_1 @smpl @all"
cmdGetDB.CommandText = eviewsstr
Set rst = cmdGetDB.Execute()
The eviewsstr takes on a value of 188 when I run the program but the recordset always turns up empty. Any help would be appreciated.
Thanks!