Author |
Topic ![Next Topic Next Topic](icon_go_right.gif) |
|
Gaff
Russia
14 Posts |
Posted - 08/25/2005 : 13:17:24
|
Уважаемые, не подскажите что означает эта ошибка Automation error (Error 440). Дело в том, что у меня программно выделяется шэйп и для него вызывается меню Custom Properties с помощью Application.DoCmd (1312). Так вот, если ни в одно из находящихся там полей не вносить изменений, то при нажатии на ОК или Cancel, на экран выводится сообщение Run-time error 'куча цифр'. А если изменения вносятся, то всё тип-топ. Чтобы это значило? Заранее благодарен за ответ. |
|
immortal
Russia
391 Posts |
Posted - 10/14/2005 : 12:20:37
|
поставте в начале процедурыOn Error Resume Next
визио 2003 форэвер
...а вобще-то я белый и пушистый. |
![Go to Top of Page Go to Top of Page](icon_go_up.gif) |
|
Voland
91 Posts |
Posted - 10/14/2005 : 12:58:55
|
Мелкомягкие описывают это так:
Automation error (Error 440) See Also Specifics
When you access Automation objects, specific types of errors can occur. This error has the following cause and solution:
An error occurred while executing a method or getting or setting a property of an object variable. The error was reported by the application that created the object. Check the properties of the Err object to determine the source and nature of the error. Also try using the On Error Resume Next statement immediately before the accessing statement, and then check for errors immediately following the accessing statement.
Вот ссылка на источник: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vbenlr98/html/vamsgOLEAutomationError.asp
___ Кто ищет тот найдет __ |
![Go to Top of Page Go to Top of Page](icon_go_up.gif) |
|
Gaff
Russia
14 Posts |
Posted - 10/24/2005 : 13:00:48
|
Большое спасибо. Всё заработало. |
![Go to Top of Page Go to Top of Page](icon_go_up.gif) |
|
immortal
Russia
391 Posts |
Posted - 10/24/2005 : 16:33:27
|
а чьё заработало, совет voland-а или мой? вдруг тоже будет такое, хоть буду знать как лечить.
визио 2003 форэвер
...а вобще-то я белый и пушистый. |
![Go to Top of Page Go to Top of Page](icon_go_up.gif) |
|
Gaff
Russia
14 Posts |
|
Gaff
Russia
14 Posts |
Posted - 10/25/2005 : 12:42:18
|
to Voland Извините за невнимательность. В Вашем варианте также даётся ссылка на процедуру "On Error Resume Next". |
![Go to Top of Page Go to Top of Page](icon_go_up.gif) |
|
|
Topic ![Next Topic Next Topic](icon_go_right.gif) |
|