|
Option Compare Database
Private Sub 换货窗口刷新_Click()
On Error GoTo Err_换货窗口刷新_Click
DoCmd.DoMenuItem acFormBar, acRecordsMenu, 5, , acMenuVer70
Exit_换货窗口刷新_Click:
Exit Sub
Err_换货窗口刷新_Click:
MsgBox Err.Description
Resume Exit_换货窗口刷新_Click
End Sub
Private Sub 打开换货记录修改窗口_Click()
On Error GoTo Err_打开换货记录修改窗口_Click
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = ChrW(25442) & ChrW(-29401) & ChrW(-29776) & ChrW(24405) & ChrW(20462) & ChrW(25913) & ChrW(31383) & ChrW(21475)
DoCmd.OpenForm stDocName, , , stLinkCriteria
Exit_打开换货记录修改窗口_Click:
Exit Sub
Err_打开换货记录修改窗口_Click:
MsgBox Err.Description
Resume Exit_打开换货记录修改窗口_Click
End Sub
Private Sub 运行宏_关闭销售查询_Click()
On Error GoTo Err_运行宏_关闭销售查询_Click
Dim stDocName As String
stDocName = ChrW(20851) & ChrW(-27155) & ChrW(-27392) & ChrW(21806) & ChrW(26597) & ChrW(-29726) & ChrW(21518)
DoCmd.RunMacro stDocName
Exit_运行宏_关闭销售查询_Click:
Exit Sub
Err_运行宏_关闭销售查询_Click:
MsgBox Err.Description
Resume Exit_运行宏_关闭销售查询_Click
End Sub
上面是查询前面那个输入日期的代码,有没有问题,我是个门外汉.请高人指点 |
|