hi all, thx 4 your time and hlp in advance.
I linked a table which is in oracle 8. what i am trying to achieve is to read the linked table and populate another table but in access 2000.
the problem is that it is not reading the data coming from the linked table.
this is my code:
when i try to read the frequency field, shows me an error because it cant read that field.
SSMDATA is the access table.
the linked table is shown in access as wr_space_w_q_sssmdata
thx 4 your hlp, max.
I linked a table which is in oracle 8. what i am trying to achieve is to read the linked table and populate another table but in access 2000.
the problem is that it is not reading the data coming from the linked table.
this is my code:
Code:
Dim strTable As String
Dim vcountp, vpage, i, rcount, vtlts As Long
Dim cnn2 As Recordset
Dim cuento, n, p, j, l, qq As Long
Dim vpc, vjc, vyc, vsave As Integer
Dim cnn As ADODB.Connection
Set cnn = New ADODB.Connection
Set dbsname = CurrentDb
cnn.ConnectionString = "OraOLEDB.Oracle;UID=USERID;PWD=PWD;Data Source=XXXXX;"
cnn.Open
Set cnn2 = dbsname.OpenRecordset("ssmdata", dbOpenTable)
cnn.MoveFirst
' count frequency for first record
cuento = 0
For n = 1 To 7
If Val(Mid(cnn.Fields("frequency"), n, 1)) <> 0 Then
cuento = cuento + 1
End If
Next n
when i try to read the frequency field, shows me an error because it cant read that field.
SSMDATA is the access table.
the linked table is shown in access as wr_space_w_q_sssmdata
thx 4 your hlp, max.