Toto je pre databázu Oracle. Skúste si to pretransfotmovať.
Dim rec As New ADODB.Recordset
Public Pripojenie As New ADODB.Connection
Pripojenie.ConnectionString = "Provider=MSDAORA;User ID=xxx;Password=xxx;Data Source=" & DataSource
selstring = "select ..."
rec.Open selstring, Pripojenie, adOpenStatic, adLockReadOnly
Do While Not rec.EOF
Stanica = rec.Fields("NazovStanice").Value
|