
Новые сообщения [новые:0]
Дайджест
Горячие темы
Избранное [новые:0]
Форумы
Пользователи
Статистика
Статистика нагрузки
Мод. лог
Поиск
|
|
23.12.2004, 11:57:02
|
|||
|---|---|---|---|
Как из кода определить работает mde или mdb? |
|||
|
#18+
При закрытии программы у юзера делаю кое какие черные дела этот код мне мешает при разработке у юзера работает MDE при разработке естественно MDB Нужно что-то типа If ItIsMde then блаблабла ... |
|||
|
:
Нравится:
Не нравится:
|
|||
|
|
|
23.12.2004, 12:03:56
|
|||
|---|---|---|---|
Как из кода определить работает mde или mdb? |
|||
|
#18+
if rihgt(currentproject.name ,1)="e" then msgbox "mde or ade" else msgbox "mdb or adp" end if ... |
|||
|
:
Нравится:
Не нравится:
|
|||
|
|
|
23.12.2004, 12:09:23
|
|||
|---|---|---|---|
|
|||
Как из кода определить работает mde или mdb? |
|||
|
#18+
Это подойдёт (цитата из справки)? MDE Property You can use the MDE property to determine whether a database has been saved as a .mde file. Note This property is only available with a Microsoft Access database (.mdb) Setting When a database is saved as an .mde file, Microsoft Access adds the MDE property to the database and sets it to the String value "T". The MDE property can be determined only by using Visual Basic and is read-only in all views. Important Trying to determine the MDE property for a database that hasn't been saved as an .mde file will generate run-time error 3270 (property not found). The MDE property doesn't exist in a database until the database is saved as an .mde file. Remarks You can convert a database to an .mde file by pointing to Database Utilities on the Tools menu and clicking Make MDE File. When you save a database as an .mde file, Microsoft Access removes all editable source code, compiles all modules, and compacts the database. Your Visual Basic code still works, but the code cannot be viewed or changed. In addition, you can't add or make changes to form or report objects. Warning Be sure to retain a copy of your original database. If you need to change any code or the design of objects in an .mde database, you must do so in the original database and then create a new .mde database. You will also need the original database in order to convert to future versions of Microsoft Access because you can't directly convert .mde files. Saving a database as an .mde file is most appropriate when you want to prevent changes to forms or reports, or hide your Visual Basic code from the database users. You could also convert a database to an .mde file when you create your own wizards or for the front-end portion of a front-end/back-end application. A replicated database can't be saved as an .mde file; however, once a database is saved as an .mde file, it can be replicated. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
|
|
|
23.12.2004, 12:12:14
|
|||
|---|---|---|---|
|
|||
Как из кода определить работает mde или mdb? |
|||
|
#18+
А вот соответствующий пример (оттуда же): Код: plaintext 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
|
|
|

start [/forum/topic.php?fid=45&tablet=1&tid=1669590]: |
0ms |
get settings: |
6ms |
get forum list: |
8ms |
check forum access: |
2ms |
check topic access: |
2ms |
track hit: |
29ms |
get topic data: |
6ms |
get forum data: |
2ms |
get page messages: |
21ms |
get tp. blocked users: |
1ms |
| others: | 198ms |
| total: | 275ms |

| 0 / 0 |
