|
|
|
Excel<-Access (Заголовки столбцов)
|
|||
|---|---|---|---|
|
#18+
При выгрузке данных из Access через рекордсет хочется видеть заголовки столбцов. Подскажите, а то без них никак. ps: Код на выгрузку данных находиться в Excell ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 27.07.2004, 09:41:56 |
|
||
|
Excel<-Access (Заголовки столбцов)
|
|||
|---|---|---|---|
|
#18+
можно так intFildCount = rstDataALL.Fields.Count - 1 For intI = 0 To intFildCount Cells(1, intI + 1).Value = rstDataALL.Fields(intI).Name Next intI ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 27.07.2004, 10:44:51 |
|
||
|
Excel<-Access (Заголовки столбцов)
|
|||
|---|---|---|---|
|
#18+
Kachможно так intFildCount = rstDataALL.Fields.Count - 1 For intI = 0 To intFildCount Cells(1, intI + 1).Value = rstDataALL.Fields(intI).Name Next intI А куда его присабачить в данном коде? Ответь по-подробней Код: plaintext 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. 13. 14. 15. 16. 17. 18. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 27.07.2004, 10:52:25 |
|
||
|
Excel<-Access (Заголовки столбцов)
|
|||
|---|---|---|---|
|
#18+
If (TestTable.RecordCount > 0) Then Cells(5,1).CopyFromRecordset TestTable intFildCount = TestTable.Fields.Count - 1 For intI = 0 To intFildCount Cells(4, intI + 1).Value = TestTable.Fields(intI).Name Next intI Else: MsgBox "Not Found" End If ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 27.07.2004, 11:09:53 |
|
||
|
|

start [/forum/topic.php?desktop=1&fid=45&tid=1672923]: |
0ms |
get settings: |
8ms |
get forum list: |
10ms |
check forum access: |
2ms |
check topic access: |
2ms |
track hit: |
45ms |
get topic data: |
8ms |
get forum data: |
2ms |
get page messages: |
37ms |
get tp. blocked users: |
2ms |
| others: | 210ms |
| total: | 326ms |

| 0 / 0 |
