Hey Everyone,
I recently wrote a prog in vb to extract data from access into excel. What I really need to do is to extract live data from pervasive 2000i into excel. So, my question is....How tuff is it going to be to taylor the access to excel prog to pervasive to excel? I've been working through some trouble shooting and ran into a snag! Anyones help would be appreciated!
This is some of the code logic i've used thus far
how do i define pervasive in vb?
Private Sub cmdLoad_Click()
Dim excel_app As Object
Dim excel_sheet As Object
Dim row As Long
Dim conn As ADODB.Connection
Dim rs As ADODB.Recordset
Dim statement As String
Dim col As Integer
---------------------------
Here is where I open the db and connect!
Set conn = New ADODB.Connection
conn.ConnectionString = _
"Provider=MSDASQL;" & _
"Driver ={Pervasive ODBC Client Interface};" & _
"SeverName=" & server & ";" & _
"ServerName=" & server & ";" & _
"ServerDSN=summit" & _
co & _
ayear & ";" & _
"UID=Mas" & _
"ter;PWD=AL" & _
"EX"
conn.Open
-----------------------------
Private Sub Form_Load()
Dim file_path As String
file_path = App.Path
If Right$(file_path, 1) <> "\" Then file_path = file_path & "\"
txtExcelFile.Text = file_path & "empty_steve_project.xls"
???????????????? = file_path & "C:\Query's\111TEST.sql"
End Sub
Thanks,
JRHEIN
IS ADMIN
I recently wrote a prog in vb to extract data from access into excel. What I really need to do is to extract live data from pervasive 2000i into excel. So, my question is....How tuff is it going to be to taylor the access to excel prog to pervasive to excel? I've been working through some trouble shooting and ran into a snag! Anyones help would be appreciated!
This is some of the code logic i've used thus far
how do i define pervasive in vb?
Private Sub cmdLoad_Click()
Dim excel_app As Object
Dim excel_sheet As Object
Dim row As Long
Dim conn As ADODB.Connection
Dim rs As ADODB.Recordset
Dim statement As String
Dim col As Integer
---------------------------
Here is where I open the db and connect!
Set conn = New ADODB.Connection
conn.ConnectionString = _
"Provider=MSDASQL;" & _
"Driver ={Pervasive ODBC Client Interface};" & _
"SeverName=" & server & ";" & _
"ServerName=" & server & ";" & _
"ServerDSN=summit" & _
co & _
ayear & ";" & _
"UID=Mas" & _
"ter;PWD=AL" & _
"EX"
conn.Open
-----------------------------
Private Sub Form_Load()
Dim file_path As String
file_path = App.Path
If Right$(file_path, 1) <> "\" Then file_path = file_path & "\"
txtExcelFile.Text = file_path & "empty_steve_project.xls"
???????????????? = file_path & "C:\Query's\111TEST.sql"
End Sub
Thanks,
JRHEIN
IS ADMIN