
Новые сообщения [новые:0]
Дайджест
Горячие темы
Избранное [новые:0]
Форумы
Пользователи
Статистика
Статистика нагрузки
Мод. лог
Поиск
|
|
31.08.2004, 12:15:19
|
|||
|---|---|---|---|
|
|||
Как сохранить Recordset во внешней mdb-базе? |
|||
|
#18+
... |
|||
|
:
Нравится:
Не нравится:
|
|||
|
|
|
31.08.2004, 12:17:31
|
|||
|---|---|---|---|
|
|||
Как сохранить Recordset во внешней mdb-базе? |
|||
|
#18+
' From Access 2002 Desktop Developer's Handbook ' by Litwin, Getz, and Gunderloy. (Sybex) ' Copyright 2001. All rights reserved. Public Sub SaveRecordset() Dim rst As ADODB.Recordset Dim strFile As String Set rst = New ADODB.Recordset ' Open the recordset from the database rst.Open "tblCustomers", CurrentProject.Connection, _ adOpenStatic, adLockOptimistic ' Construct a file name to use strFile = CurrentProject.Path & "\Customers.adtg" ' Destroy any existing file On Error Resume Next Kill strFile Err.Clear ' Now save the recordset to disk rst.Save strFile, adPersistADTG ' Close the recordset in memory rst.Close End Sub ... |
|||
|
:
Нравится:
Не нравится:
|
|||
|
|
|
31.08.2004, 13:45:16
|
|||
|---|---|---|---|
Как сохранить Recordset во внешней mdb-базе? |
|||
|
#18+
ищrst.Save strFile, adPersistADTGКласс! Надо бы себе куда-нибудь записать... Может в фак? ... |
|||
|
:
Нравится:
Не нравится:
|
|||
|
|
|
31.08.2004, 13:46:29
|
|||
|---|---|---|---|
|
|||
Как сохранить Recordset во внешней mdb-базе? |
|||
|
#18+
Лучше Object Browser перед сном читай ... |
|||
|
:
Нравится:
Не нравится:
|
|||
|
|
|
31.08.2004, 14:23:05
|
|||
|---|---|---|---|
Как сохранить Recordset во внешней mdb-базе? |
|||
|
#18+
дык, посили в mdb, а не в adtg эти файлы друг от друга несколько отличаются ... |
|||
|
:
Нравится:
Не нравится:
|
|||
|
|
|
31.08.2004, 14:47:00
|
|||
|---|---|---|---|
|
|||
Как сохранить Recordset во внешней mdb-базе? |
|||
|
#18+
для того, чтобы сохранить данные в другой базе вовсе необязательно создавать рекордсет. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
|
|
|
31.08.2004, 14:53:28
|
|||
|---|---|---|---|
|
|||
Как сохранить Recordset во внешней mdb-базе? |
|||
|
#18+
достаточно экспортировать запросом INSERT INTO Клиенты IN 'C:\db1_.mdb' SELECT Клиенты.* FROM Клиенты; ... |
|||
|
:
Нравится:
Не нравится:
|
|||
|
|
|
31.08.2004, 15:56:21
|
|||
|---|---|---|---|
Как сохранить Recordset во внешней mdb-базе? |
|||
|
#18+
The ActiveConnection argument corresponds to the ActiveConnection property and specifies in which connection to open the Recordset object. If you pass a connection definition for this argument, ADO opens a new connection using the specified parameters. You can change the value of this property after opening the Recordset to send updates to another provider. -------------- Короче, открываешь Recordset, меняешь ActiveConnection и делаешь Update... ... |
|||
|
:
Нравится:
Не нравится:
|
|||
|
|
|

start [/forum/topic.php?fid=45&mobile=1&tid=1672081]: |
0ms |
get settings: |
8ms |
get forum list: |
9ms |
check forum access: |
3ms |
check topic access: |
3ms |
track hit: |
52ms |
get topic data: |
7ms |
get forum data: |
2ms |
get page messages: |
27ms |
get tp. blocked users: |
1ms |
| others: | 204ms |
| total: | 316ms |

| 0 / 0 |
