|
Dim TempMsgbox As VbMsgBoxStyle
TempMsgbox = MsgBox("确认要打印该条记录吗?按是则打印,否则浏览记录。", vbQuestion + vbYesNoCancel, "打印提示")
If TempMsgbox = vbYes Then
DoCmd.OpenReport "报表1", acViewNormal, , "编号=" & Me.编号, , acWindowNormal
ElseIf TempMsgbox = vbNo Then
DoCmd.OpenReport "报表1", acViewPreview, , "编号=" & Me.编号, , acWindowNormal
上述语句中: "编号=" & Me.编号,怎么理解
我照此写了这么一句:
Dim TempMsgbox As VbMsgBoxStyle
TempMsgbox = MsgBox("确认要打印该条记录吗?按是则打印,否则浏览记录。", vbQuestion + vbYesNoCancel, "打印提示")
If TempMsgbox = vbYes Then
DoCmd.OpenReport "意见-归档B", acViewNormal, , "编号=" & Me.编号, , acWindowNormal
ElseIf TempMsgbox = vbNo Then
DoCmd.OpenReport "意见-归档B", acViewPreview, , "编号=" & Me.编号, , acWindowNormal
End If
怎么会出现附件中的提示呢?还要输入编号。 |
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有帐号?注册
x
|