Stored Procedure with access VBA Button

无人久伴 提交于 2019-12-13 02:56:39

问题


I need to execute a stored procedure in MS Access 2013. I use Access as front end interface which is connected to two databases. One database has a few stored procedures. I need to execute those with push of button in the Access.

Database is connected through SQL Server authentication. I started a button in Access and here is the VBA code behind this button. It's empty and just simply need more code to get it running:

Private Sub UpdateItems_Click()        
End Sub

Here are the parameters to establish the connection and stored procedure name:

  1. Server Name: BOX\SQL2014
  2. User Name: sa
  3. Password: 123456PS
  4. Database: SixBit
  5. Stored procedure name: spRefreshItems

来源:https://stackoverflow.com/questions/31065340/stored-procedure-with-access-vba-button

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!