How to check the cause of Access SysCmd fail in VB.NET code?

后端 未结 1 2008
一整个雨季
一整个雨季 2021-01-23 01:39

We have an application developed in VB.NET as well as in VBA in the client. In a installer custom action developed in VB.NET we compile mdb file to mde using the Access\'s SysCm

相关标签:
1条回答
  • 2021-01-23 02:17

    The 603 argument of syscmd is undocumented. It will fail for a number of reasons, for example, running under VBA it will fail if you do not use a separate instance of MS Access. In this, other reason to fail are given as:

    • when it's used in VBA code running in a separate Access database (separate from the solution database);
    • when the solution database is closed; and
    • when there are no syntax errors in the VBA code in the solution database.

    The document also lists these references:

    Douglas Steele makes an interesting point here:
    http://www.pcreview.co.uk/forums/thread-2621925.php
    Tony Toews investigates undocumented SysCmds here:
    https://msmvps.com/blogs/access/archive/2007/08/19/so-what-are-the-undocumented-syscmd-items.aspx
    Tony Toews also links to this page:
    http://www.everythingaccess.com/tutorials.asp?ID=Undocumented-SysCmd-Functions

    0 讨论(0)
提交回复
热议问题