小编SQL*_*wan的帖子

访问存储过程不起作用

以下存储过程不起作用,我已经尝试了一切没有成功.请帮忙.

Sub Create_View()

    Dim conn As ADODB.Connection

    Set conn = Application.CurrentProject.Connection

    conn.Execute "CREATE VIEW vw_RobPS AS " & _
    "SELECT sid, " & _
    "Lname, " & _
    "Fname, " & _
    "EmpStatus, " & _
    "[Peax Update as of 6-18-15], " & _
    "[Peax Update Date] " & _
    "FROM Master_06-18-2015" & _
    "WHERE [Peax Update Date] as PeaxUdDt is not null; "

    Application.RefreshDatabaseWindow

ExitHere:
  If Not conn Is Nothing Then
    If conn.State = adStateOpen Then conn.Close
  End If …
Run Code Online (Sandbox Code Playgroud)

ms-access access-vba

0
推荐指数
1
解决办法
34
查看次数

标签 统计

access-vba ×1

ms-access ×1