设为首页收藏本站Access中国

Office中国论坛/Access中国论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

ACCESS 技巧加强后的自定义MSGBOX函数

2015-4-24 16:48| 发布者: admin| 查看: 1149| 评论: 5|原作者: 大熊|来自: www.office-cn.net

摘要: Function FormattedMsgBox( _ Prompt As String, _ Optional Buttons As VbMsgBoxStyle = vbOKOnly, _ Optional Title As String = vbNullString, _ Optional HelpFile As Variant, _ Optional Context As ...

Function FormattedMsgBox( _
Prompt As String, _
Optional Buttons As VbMsgBoxStyle = vbOKOnly, _
Optional Title As String = vbNullString, _
Optional HelpFile As Variant, _
Optional Context As Variant) _
As VbMsgBoxResult
If IsMissing(HelpFile) Or IsMissing(Context) Then
FormattedMsgBox = Eval("MsgBox(""" & Prompt & _
""", " & Buttons & ", """ & Title & """)")
Else
FormattedMsgBox = Eval("MsgBox(""" & Prompt & _
""", " & Buttons & ", """ & Title & """, """ & _
HelpFile & """, " & Context & ")")
End If
End Function
发表评论

最新评论

引用 tmtony 2002-4-26 21:39
我忘了在哪看到过这函数啦。是挺有新意
不过你得解释一下,否则人家不知道在哪个地方加强了
引用 yttzm 2005-12-18 05:26
不懂怎么用。




能解释一下么?
引用 13822233219 2006-1-1 01:09
引用 13822233219 2006-1-1 01:10
还能改正吗????
引用 LucasLynn 2006-1-3 16:26
以下是引用tmtony在2002-4-26 13:39:00的发言:
我忘了在哪看到过这函数啦。是挺有新意
不过你得解释一下,否则人家不知道在哪个地方加强了




这段代码最早出自Usenet,后被MVP Michael Kaplan整理转载后发表在他的网站trigeminal.com,后被微软选入KB,编号:KB242889

查看全部评论(5)

QQ|站长邮箱|小黑屋|手机版|Office中国/Access中国 ( 粤ICP备10043721号-1 )  

GMT+8, 2024-4-20 20:48 , Processed in 0.101842 second(s), 23 queries .

Powered by Discuz! X3.3

© 2001-2017 Comsenz Inc.

返回顶部