SERG_B » 01.03.2005 (Вт) 20:16
Вот код:
Public wrkODBC As DAO.Workspace
Public conODBC As DAO.Connection
Public rsGoods As DAO.Recordset
Private Sub Form_Load()
Set wrkODBC = CreateWorkspace(ODBCWorkspace, SERG, "", dbUseODBC)
Set conODBC = wrkODBC.OpenConnection("ConnectODBC", , , "ODBC;DATABASE=planet;UID=SERG;PWD=;DSN=DB")
Set rsGoods = conODBC.OpenRecordset("SELECT good.id_good, good.name, good.id_brand, brand.brand, good.id_type, type.type, good.id_sport, sport.sport, good.id_season, season.season, good.description FROM good, brand, type, sport, season WHERE good.id_brand=brand.id_brand AND good.id_type=type.id_type AND good.id_sport=sport.id_sport AND good.id_season= season.id_season ORDER BY good.id_good", dbOpenDynamic)
With rsGoods
.MoveFirst
Do While Not .EOF
MsgBox .Fields(10)
MsgBox .Fields(10)
.MoveNext
Loop
End With
End Sub
При загрузке в первом msgbox - нужный текст, второй - пустой. Все остальные тоже пустые.
Версия драйвера: 2.5
Спасибо.
SERG.