![]() |
#4 |
Moderator
|
Цитата:
![]() Цитата:
Сообщение от внутреннего содержания файла проекта
#// ABOUT DEMO APPENDIX
#// -------------------- #// This XPO-file contains 4 jobs to demonstrate how to use heirs of this class. #// Please run job ImportFrODB_DemoStep1_PreparingTest first to create two sample files (.mdb & .xls). #// Sample files will be saved in preset folder C:\AxForumTests\Gustav (folder will be created automatically) #// (please don't change this default path without weighty reasons - save your time! :-) ) #// (of course if you want to do it in any way - please change path in every job of 4) #// After that you can run other jobs (_DemoStep2,3,4) in any order. Так что, Иван, обо всём уже "позабочено"... ![]() P.S. Добавлю еще цитату для "разжигания аппетита" - SQL-запрос к листу Excel возвращает фамилии, начинающиеся на 3-ю по "популярности" первую букву поля Name вашей таблицы EmplTable (у меня это была буква Б, а первые две - К и В русские): Код: # doc.setRecordSource( # 'SELECT * FROM [EmplTable$] WHERE Left([Name],1) IN ' + # '( ' + # ' SELECT TOP 1 FirstLetter FROM ' + # ' ( ' + # ' SELECT TOP 3 FirstLetter, Count(*) AS CountOfFirstLetter ' + # ' FROM ' + # ' ( ' + # ' SELECT Left([Name],1) AS FirstLetter, [EmplTable$].* ' + # ' FROM [EmplTable$] ' + # ' ) ' + # ' GROUP BY FirstLetter ' + # ' ORDER BY Count(*) DESC ' + # ' ) ' + # ' ORDER BY CountOfFirstLetter ' + # ') ' ); # // this query returns subset of records from worksheet EmplTable, # // in which every name of employee starts with character, # // which is on 3rd position in rank of more popular first characters in Name field |
|
Теги |
access, ado, axapta, dao, download, excel, faq, законченный пример, импорт, полезное |
|
![]() |
||||
Тема | Ответов | |||
Построчный импорт из Excel через COM | 3 | |||
Построчный импорт из Excel через COM | 20 | |||
Импорт бюджета из Excel | 16 | |||
Проблем импорт из Excel | 1 | |||
OLAP: Импорт в Excel | 2 |
|