How to use sftp from within an MS Access database module?

后端 未结 5 1625
囚心锁ツ
囚心锁ツ 2021-01-06 02:31

I have a requirement to create a simple database in Access to collect some user data that will be loaded into another database for further reporting. There will be a module

5条回答
  •  Happy的楠姐
    2021-01-06 02:59

    You can simply write a call to the sftp command line client via a batch file if you want to accomplish that.

    Check out the Shell() function in VBA.

    Under the click event of the button on your form add in the code:

    mySFTPCall = "sftp "
    Call Shell(mySFTPCall, 1)
    

    I've used this before to just copy files straight across network shares etc. to share data from an in-house Access DB. Of course you could get more fancy if necessary.

提交回复
热议问题