<?xml version="1.0" encoding="UTF-8"?><rss
version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
> <channel><title>Comments on: MS Access: Enhanced Message Box Replacement</title> <atom:link href="http://blog.nkadesign.com/2008/ms-access-enhanced-message-box-replacement/feed/" rel="self" type="application/rss+xml" /><link>http://blog.nkadesign.com/2008/ms-access-enhanced-message-box-replacement/</link> <description>Renaud Bompuis on the interwebs!</description> <lastBuildDate>Thu, 09 May 2013 14:27:45 +0000</lastBuildDate> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=203</generator> <item><title>By: Peter Cole</title><link>http://blog.nkadesign.com/2008/ms-access-enhanced-message-box-replacement/comment-page-2/#comment-17530</link> <dc:creator>Peter Cole</dc:creator> <pubDate>Mon, 06 May 2013 15:39:21 +0000</pubDate> <guid
isPermaLink="false">http://blog.nkadesign.com/?p=76#comment-17530</guid> <description><![CDATA[&lt;p&gt;Great replacement. I have an enhanced version of your 1.4 including Access 2010 Themes.  Nice shaped buttons and colour scheme to match the end users colours. I will send you a copy if you can let me know an address.&lt;/p&gt;
]]></description> <content:encoded><![CDATA[<p>Great replacement. I have an enhanced version of your 1.4 including Access 2010 Themes.  Nice shaped buttons and colour scheme to match the end users colours. I will send you a copy if you can let me know an address.</p> ]]></content:encoded> </item> <item><title>By: Frederick</title><link>http://blog.nkadesign.com/2008/ms-access-enhanced-message-box-replacement/comment-page-2/#comment-16448</link> <dc:creator>Frederick</dc:creator> <pubDate>Fri, 19 Apr 2013 08:51:57 +0000</pubDate> <guid
isPermaLink="false">http://blog.nkadesign.com/?p=76#comment-16448</guid> <description><![CDATA[&lt;p&gt;Same if I use it in a Form_Close()&lt;/p&gt;
&lt;p&gt;grtz&lt;/p&gt;
]]></description> <content:encoded><![CDATA[<p>Same if I use it in a Form_Close()</p><p>grtz</p> ]]></content:encoded> </item> <item><title>By: Frederick</title><link>http://blog.nkadesign.com/2008/ms-access-enhanced-message-box-replacement/comment-page-2/#comment-16439</link> <dc:creator>Frederick</dc:creator> <pubDate>Fri, 19 Apr 2013 06:52:57 +0000</pubDate> <guid
isPermaLink="false">http://blog.nkadesign.com/?p=76#comment-16439</guid> <description><![CDATA[&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;First of all, thx for sharing this. Everything works fine, exept when I try to use it as followed. I have a report that is a sort of letter. The text in this report varies based on the info that is found in the query where it is based on. (if a certain document is not present it is set on false and the report will display the text where it asks for that document) This report is outputed to a pdf-file. There is one piece of data that can not be found in any table and/query. Therfor i ask the user of the database if tey want to include the question in the report. The only way i figured out to do that is to put the msgbox into a function and call that function from within the report. If I use the dialog.box instead of the msgbox, Access shows a empty form with the title, but without the question and the buttons and the whole database becomes inresponsive. Any idea why?&lt;/p&gt;
&lt;p&gt;grtz&lt;/p&gt;
]]></description> <content:encoded><![CDATA[<p>Hello,</p><p>First of all, thx for sharing this. Everything works fine, exept when I try to use it as followed. I have a report that is a sort of letter. The text in this report varies based on the info that is found in the query where it is based on. (if a certain document is not present it is set on false and the report will display the text where it asks for that document) This report is outputed to a pdf-file. There is one piece of data that can not be found in any table and/query. Therfor i ask the user of the database if tey want to include the question in the report. The only way i figured out to do that is to put the msgbox into a function and call that function from within the report. If I use the dialog.box instead of the msgbox, Access shows a empty form with the title, but without the question and the buttons and the whole database becomes inresponsive. Any idea why?</p><p>grtz</p> ]]></content:encoded> </item> <item><title>By: Julie B</title><link>http://blog.nkadesign.com/2008/ms-access-enhanced-message-box-replacement/comment-page-2/#comment-15230</link> <dc:creator>Julie B</dc:creator> <pubDate>Mon, 08 Apr 2013 00:59:33 +0000</pubDate> <guid
isPermaLink="false">http://blog.nkadesign.com/?p=76#comment-15230</guid> <description><![CDATA[&lt;p&gt;Thank you so much for your quick response and time to make life so much easier for people like us who bang our heads consistently wondering &quot;how to....&quot;.  Taking away this second level of confusion (i.e. monitors) has now given my app a degree of professionalism and one which I will be confident to install on any dunderheads desktop.  Thank you again&lt;/p&gt;
]]></description> <content:encoded><![CDATA[<p>Thank you so much for your quick response and time to make life so much easier for people like us who bang our heads consistently wondering &#8220;how to&#8230;.&#8221;.  Taking away this second level of confusion (i.e. monitors) has now given my app a degree of professionalism and one which I will be confident to install on any dunderheads desktop.  Thank you again</p> ]]></content:encoded> </item> <item><title>By: Renaud Bompuis</title><link>http://blog.nkadesign.com/2008/ms-access-enhanced-message-box-replacement/comment-page-2/#comment-14173</link> <dc:creator>Renaud Bompuis</dc:creator> <pubDate>Mon, 01 Apr 2013 07:47:35 +0000</pubDate> <guid
isPermaLink="false">http://blog.nkadesign.com/?p=76#comment-14173</guid> <description><![CDATA[&lt;p&gt;A new version is out (v1.4), please comment below if you have any problem or suggestions.&lt;br /&gt;
The article has been updated to reflect and explain the changes.&lt;br /&gt;
Read the Code Update section for details.&lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;
]]></description> <content:encoded><![CDATA[<p>A new version is out (v1.4), please comment below if you have any problem or suggestions.<br
/> The article has been updated to reflect and explain the changes.<br
/> Read the Code Update section for details.</p><p>Thanks!</p> ]]></content:encoded> </item> <item><title>By: Julie B</title><link>http://blog.nkadesign.com/2008/ms-access-enhanced-message-box-replacement/comment-page-2/#comment-14169</link> <dc:creator>Julie B</dc:creator> <pubDate>Fri, 29 Mar 2013 08:41:45 +0000</pubDate> <guid
isPermaLink="false">http://blog.nkadesign.com/?p=76#comment-14169</guid> <description><![CDATA[&lt;p&gt;Just tried it on my app - looks great and love the feel, however, my clients and I run dual monitors and it appears that the message box defaults to the primary monitor.  How can I get message to appear over the screen displaying the app ??? Thanks&lt;/p&gt;
]]></description> <content:encoded><![CDATA[<p>Just tried it on my app -- looks great and love the feel, however, my clients and I run dual monitors and it appears that the message box defaults to the primary monitor.  How can I get message to appear over the screen displaying the app ??? Thanks</p> ]]></content:encoded> </item> <item><title>By: Concentus</title><link>http://blog.nkadesign.com/2008/ms-access-enhanced-message-box-replacement/comment-page-2/#comment-14161</link> <dc:creator>Concentus</dc:creator> <pubDate>Thu, 21 Feb 2013 21:15:45 +0000</pubDate> <guid
isPermaLink="false">http://blog.nkadesign.com/?p=76#comment-14161</guid> <description><![CDATA[&lt;p&gt;Works great! Thanks for sharing this. I&#039;ve been using Peterssoftware&#039;s ForceShutdown to allow me to do updates on my database when users left it open. But MsgBoxes were causing it to hang. I replaced all MsgBoxes with Dialog.Box in the main entry forms and it works great. Plus the enhanced features add a lot.
Has saved me a lot of time. Do you have a Donate button?&lt;/p&gt;
]]></description> <content:encoded><![CDATA[<p>Works great! Thanks for sharing this. I&#8217;ve been using Peterssoftware&#8217;s ForceShutdown to allow me to do updates on my database when users left it open. But MsgBoxes were causing it to hang. I replaced all MsgBoxes with Dialog.Box in the main entry forms and it works great. Plus the enhanced features add a lot.
Has saved me a lot of time. Do you have a Donate button?</p> ]]></content:encoded> </item> <item><title>By: Gustav Brock</title><link>http://blog.nkadesign.com/2008/ms-access-enhanced-message-box-replacement/comment-page-2/#comment-14158</link> <dc:creator>Gustav Brock</dc:creator> <pubDate>Thu, 14 Feb 2013 17:14:09 +0000</pubDate> <guid
isPermaLink="false">http://blog.nkadesign.com/?p=76#comment-14158</guid> <description><![CDATA[&lt;p&gt;Thanks! Very neat.
I was looking for a MsgBox with an Information icon but no beep.&lt;/p&gt;
]]></description> <content:encoded><![CDATA[<p>Thanks! Very neat.
I was looking for a MsgBox with an Information icon but no beep.</p> ]]></content:encoded> </item> <item><title>By: Kristjan</title><link>http://blog.nkadesign.com/2008/ms-access-enhanced-message-box-replacement/comment-page-2/#comment-14155</link> <dc:creator>Kristjan</dc:creator> <pubDate>Sat, 09 Feb 2013 21:56:35 +0000</pubDate> <guid
isPermaLink="false">http://blog.nkadesign.com/?p=76#comment-14155</guid> <description><![CDATA[&lt;p&gt;A really good work.
But I wanted to give the buttons an own name.
I couldn&#039;t find a possiblity to write - &lt;code&gt;bt1.caption=&quot;Text&quot;&lt;/code&gt; - before the dialog.box.
So I declared 3 public variables: &lt;code&gt;Public Button1_Sgl As String, Public Button2_Sgl As String, Public Button3_Sgl As String&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;Into the Sub SetUpButtons() I insert:
&lt;code&gt;If Button1_Sgl = &quot;&quot; Then
Button1_Sgl = &quot;bt1&quot;
End If
If Button2_Sgl = &quot;&quot; Then
Button2_Sgl = &quot;bt2&quot;
End If
If Button3_Sgl = &quot;&quot; Then
Button3_Sgl = &quot;bt3&quot;
End If
bt1.caption = Button1_Sgl
bt2.caption = Button2_Sgl
bt3.caption = Button3_Sgl
&#039; Detect which buttons to display
....
If (m_Buttons And vbRetryCancel) = vbRetryCancel Then
bt3.Visible = False
bt2.Visible = True
bt2.Tag = vbRetry
If bt2.caption = &quot;bt2&quot; Then
bt2.caption = GetUser32ResourceString(RES_BT_Retry)
End If
bt1.Visible = True
bt1.Tag = vbCancel
If bt1.caption = &quot;bt1&quot; Then
bt1.caption = GetUser32ResourceString(RES_BT_Cancel)
End If
bt1.Cancel = True
ElseIf (m_Buttons And vbYesNo) = vbYesNo Then
bt3.Visible = False
bt2.Visible = True
bt2.Tag = vbYes
If bt2.caption = &quot;bt2&quot; Then
bt2.caption = GetUser32ResourceString(RES_BT_Yes)
End If
bt1.Visible = True
bt1.Tag = vbNo
If bt1.caption = &quot;bt1&quot; Then
bt1.caption = GetUser32ResourceString(RES_BT_No)
End If
bt1.Cancel = True
ElseIf (m_Buttons And vbYesNoCancel) = vbYesNoCancel Then
bt3.Visible = True
bt3.Tag = vbYes
If bt3.caption = &quot;bt3&quot; Then
bt3.caption = GetUser32ResourceString(RES_BT_Yes)
End If
bt2.Visible = True
bt2.Tag = vbNo
If bt2.caption = &quot;bt2&quot; Then
bt2.caption = GetUser32ResourceString(RES_BT_No)
End If
bt1.Visible = True
bt1.Tag = vbCancel
If bt1.caption = &quot;bt1&quot; Then
bt1.caption = GetUser32ResourceString(RES_BT_Cancel)
End If
bt1.Cancel = True
ElseIf (m_Buttons And vbAbortRetryIgnore) = vbAbortRetryIgnore Then
bt3.Visible = True
bt3.Tag = vbAbort
If bt3.caption = &quot;bt3&quot; Then
bt3.caption = GetUser32ResourceString(RES_BT_Abort)
End If
bt2.Visible = True
bt2.Tag = vbRetry
If bt2.caption = &quot;bt2&quot; Then
bt2.caption = GetUser32ResourceString(RES_BT_Retry)
End If
bt1.Visible = True
bt1.Tag = vbIgnore
If bt1.caption = &quot;bt1&quot; Then
bt1.caption = GetUser32ResourceString(RES_BT_Ignore)
End If
bt1.Cancel = True
ElseIf (m_Buttons And vbOKCancel) = vbOKCancel Then
bt3.Visible = False
bt2.Visible = True
bt2.Tag = vbOK
If bt2.caption = &quot;bt2&quot; Then
bt2.caption = GetUser32ResourceString(RES_BT_OK)
End If
bt1.Visible = True
bt1.Tag = vbCancel
If bt1.caption = &quot;bt1&quot; Then
bt1.caption = GetUser32ResourceString(RES_BT_Cancel)
End If
bt1.Cancel = True
Else
bt3.Visible = False
bt2.Visible = False
bt1.Visible = True
bt1.Tag = vbOK
If bt1.caption = &quot;bt1&quot; Then
bt1.caption = GetUser32ResourceString(RES_BT_OK)
End If
bt1.Cancel = True
End If
Button1_Sgl = &quot;&quot;
Button2_Sgl = &quot;&quot;
Button3_Sgl = &quot;&quot;
End Sub&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;Now I write the Messagebox:
&lt;code&gt;Button1_Sgl = &quot;Mieterdaten&quot;
Button2_Sgl = &quot;Adresse&quot;
Mldg_S = &quot;Sollen die Daten des Mietvertrages verwendet werden?&#092;n&#092;noder soll eingetragen werden:&#092;nnur die Adresse?&#092;nnur die Mieterdaten?&quot;
Select Case Dialog.Box(Mldg_S, vbQuestion + vbYesNoCancel, &quot;Datentransfer&quot;)
Case vbYes
If s = &quot;Wohnraum#&quot; Then
FlagWohnR_b = True
Else
FlagWohnR_b = False
End If
Case vbNo
FlagWohnR_b = True
FlagAdresse_B = True
Case vbCancel
FlagWohnR_b = True
FlagMieter_B = True
End Select&lt;/code&gt;
Now it is perfect. But you know may be a better solution.
Thanks for this excellent code, Kristjan - Berlin&lt;/p&gt;
]]></description> <content:encoded><![CDATA[<p>A really good work.
But I wanted to give the buttons an own name.
I couldn&#8217;t find a possiblity to write -- <code>bt1.caption="Text"</code> -- before the dialog.box.
So I declared 3 public variables: <code>Public Button1_Sgl As String, Public Button2_Sgl As String, Public Button3_Sgl As String</code></p><p>Into the Sub SetUpButtons() I insert:<pre><code>If Button1_Sgl = "" Then
    Button1_Sgl = "bt1"
End If
If Button2_Sgl = "" Then
    Button2_Sgl = "bt2"
End If
If Button3_Sgl = "" Then
    Button3_Sgl = "bt3"
End If
bt1.caption = Button1_Sgl
bt2.caption = Button2_Sgl
bt3.caption = Button3_Sgl
' Detect which buttons to display
....
If (m_Buttons And vbRetryCancel) = vbRetryCancel Then
    bt3.Visible = False
    bt2.Visible = True
    bt2.Tag = vbRetry
    If bt2.caption = "bt2" Then
       bt2.caption = GetUser32ResourceString(RES_BT_Retry)
    End If
    bt1.Visible = True
    bt1.Tag = vbCancel
    If bt1.caption = "bt1" Then
       bt1.caption = GetUser32ResourceString(RES_BT_Cancel)
    End If
    bt1.Cancel = True
ElseIf (m_Buttons And vbYesNo) = vbYesNo Then
    bt3.Visible = False
    bt2.Visible = True
    bt2.Tag = vbYes
    If bt2.caption = "bt2" Then
       bt2.caption = GetUser32ResourceString(RES_BT_Yes)
    End If
    bt1.Visible = True
    bt1.Tag = vbNo
    If bt1.caption = "bt1" Then
       bt1.caption = GetUser32ResourceString(RES_BT_No)
    End If
    bt1.Cancel = True
ElseIf (m_Buttons And vbYesNoCancel) = vbYesNoCancel Then
    bt3.Visible = True
    bt3.Tag = vbYes
    If bt3.caption = "bt3" Then
       bt3.caption = GetUser32ResourceString(RES_BT_Yes)
    End If
    bt2.Visible = True
    bt2.Tag = vbNo
    If bt2.caption = "bt2" Then
       bt2.caption = GetUser32ResourceString(RES_BT_No)
    End If
    bt1.Visible = True
    bt1.Tag = vbCancel
    If bt1.caption = "bt1" Then
       bt1.caption = GetUser32ResourceString(RES_BT_Cancel)
    End If
    bt1.Cancel = True
ElseIf (m_Buttons And vbAbortRetryIgnore) = vbAbortRetryIgnore Then
    bt3.Visible = True
    bt3.Tag = vbAbort
    If bt3.caption = "bt3" Then
       bt3.caption = GetUser32ResourceString(RES_BT_Abort)
    End If
    bt2.Visible = True
    bt2.Tag = vbRetry
    If bt2.caption = "bt2" Then
       bt2.caption = GetUser32ResourceString(RES_BT_Retry)
    End If
    bt1.Visible = True
    bt1.Tag = vbIgnore
    If bt1.caption = "bt1" Then
       bt1.caption = GetUser32ResourceString(RES_BT_Ignore)
    End If
    bt1.Cancel = True
ElseIf (m_Buttons And vbOKCancel) = vbOKCancel Then
    bt3.Visible = False
    bt2.Visible = True
    bt2.Tag = vbOK
    If bt2.caption = "bt2" Then
       bt2.caption = GetUser32ResourceString(RES_BT_OK)
    End If
    bt1.Visible = True
    bt1.Tag = vbCancel
    If bt1.caption = "bt1" Then
       bt1.caption = GetUser32ResourceString(RES_BT_Cancel)
    End If
    bt1.Cancel = True
Else
    bt3.Visible = False
    bt2.Visible = False
    bt1.Visible = True
    bt1.Tag = vbOK
    If bt1.caption = "bt1" Then
       bt1.caption = GetUser32ResourceString(RES_BT_OK)
    End If
    bt1.Cancel = True
End If
Button1_Sgl = ""
Button2_Sgl = ""
Button3_Sgl = ""
End Sub</code></pre></p><p>Now I write the Messagebox:<pre><code>Button1_Sgl = "Mieterdaten"
Button2_Sgl = "Adresse"
Mldg_S = "Sollen die Daten des Mietvertrages verwendet werden?&amp;#092;n&amp;#092;noder soll eingetragen werden:&amp;#092;nnur die Adresse?&amp;#092;nnur die Mieterdaten?"
Select Case Dialog.Box(Mldg_S, vbQuestion + vbYesNoCancel, "Datentransfer")
  Case vbYes
        If s = "Wohnraum#" Then
          FlagWohnR_b = True
        Else
          FlagWohnR_b = False
        End If
  Case vbNo
        FlagWohnR_b = True
        FlagAdresse_B = True
  Case vbCancel
        FlagWohnR_b = True
        FlagMieter_B = True
End Select</code></pre>Now it is perfect. But you know may be a better solution.
Thanks for this excellent code, Kristjan -- Berlin</p> ]]></content:encoded> </item> <item><title>By: oneD</title><link>http://blog.nkadesign.com/2008/ms-access-enhanced-message-box-replacement/comment-page-2/#comment-14105</link> <dc:creator>oneD</dc:creator> <pubDate>Fri, 04 Jan 2013 00:07:25 +0000</pubDate> <guid
isPermaLink="false">http://blog.nkadesign.com/?p=76#comment-14105</guid> <description><![CDATA[&lt;p&gt;I cant add this to my DB. I copied both modules and try the code, but dont working. Then i open new blank form on sample DB, ant its working. I&#039;m using Access 2010. Any idea what to do?&lt;/p&gt;
]]></description> <content:encoded><![CDATA[<p>I cant add this to my DB. I copied both modules and try the code, but dont working. Then i open new blank form on sample DB, ant its working. I&#8217;m using Access 2010. Any idea what to do?</p> ]]></content:encoded> </item> <item><title>By: kmack11</title><link>http://blog.nkadesign.com/2008/ms-access-enhanced-message-box-replacement/comment-page-2/#comment-14085</link> <dc:creator>kmack11</dc:creator> <pubDate>Wed, 12 Sep 2012 02:38:30 +0000</pubDate> <guid
isPermaLink="false">http://blog.nkadesign.com/?p=76#comment-14085</guid> <description><![CDATA[&lt;p&gt;Great Mod.... Have recieve a Compile Error the code in vb that states that  User Defined Type not defined.  Is there any particular reference that i need to be sure that is set for this code to compile?&lt;/p&gt;
&lt;p&gt;&lt;code&gt;Private m_Buttons As VbDialog.BoxStyle
Private m_Title As String
Private m_Prompt As String
Private m_ButtonDelay As Long
Private m_IsRichText As Boolean
Private m_Result As VbDialog.BoxResult
Private m_PlaintextPrompt  As String
Private m_SavedTextFileFolder As String
Private m_AllowBeep As Boolean&lt;/code&gt;&lt;/p&gt;
]]></description> <content:encoded><![CDATA[<p>Great Mod&#8230;. Have recieve a Compile Error the code in vb that states that  User Defined Type not defined.  Is there any particular reference that i need to be sure that is set for this code to compile?</p><p><pre><code>Private m_Buttons As VbDialog.BoxStyle
Private m_Title As String
Private m_Prompt As String
Private m_ButtonDelay As Long
Private m_IsRichText As Boolean
Private m_Result As VbDialog.BoxResult
Private m_PlaintextPrompt  As String
Private m_SavedTextFileFolder As String
Private m_AllowBeep As Boolean</code></pre></p> ]]></content:encoded> </item> <item><title>By: Lxocram</title><link>http://blog.nkadesign.com/2008/ms-access-enhanced-message-box-replacement/comment-page-2/#comment-14060</link> <dc:creator>Lxocram</dc:creator> <pubDate>Mon, 21 May 2012 08:31:56 +0000</pubDate> <guid
isPermaLink="false">http://blog.nkadesign.com/?p=76#comment-14060</guid> <description><![CDATA[&lt;p&gt;You have it as an optional parameter on the Dialog.Box function&lt;/p&gt;
&lt;p&gt;Public Function Box(ByVal Prompt As String, _
Optional ByVal Buttons As VbMsgBoxStyle = vbOKOnly, _
Optional ByVal Title As String = &quot;&quot;, _
Optional ByVal HelpFile As String = &quot;&quot;, _
Optional ByVal HelpContextId As Long = 0, _
Optional ByVal ButtonDelay As Long = -1, _
Optional ByVal AllowBeep As Variant) _
As VbMsgBoxResult
...&lt;/p&gt;
&lt;p&gt;And there is a
Private Const DEFAULT_BUTTON_DELAY = 1&lt;/p&gt;
&lt;p&gt;You can also override it in the form_open event of Form_FormDialog
m_ButtonDelay = 2 (whole app has same delay)&lt;/p&gt;
&lt;p&gt;but I suggest you set the DEFAULT_BUTTON_DELAY in class Dialog. That way you can call Dialog.Box and either use the default or set it via optional parameter&lt;/p&gt;
]]></description> <content:encoded><![CDATA[<p>You have it as an optional parameter on the Dialog.Box function</p><p>Public Function Box(ByVal Prompt As String, _
Optional ByVal Buttons As VbMsgBoxStyle = vbOKOnly, _
Optional ByVal Title As String = &#8220;&#8221;, _
Optional ByVal HelpFile As String = &#8220;&#8221;, _
Optional ByVal HelpContextId As Long = 0, _
Optional ByVal ButtonDelay As Long = -1, _
Optional ByVal AllowBeep As Variant) _
As VbMsgBoxResult
&#8230;</p><p>And there is a
Private Const DEFAULT_BUTTON_DELAY = 1</p><p>You can also override it in the form_open event of Form_FormDialog
m_ButtonDelay = 2 (whole app has same delay)</p><p>but I suggest you set the DEFAULT_BUTTON_DELAY in class Dialog. That way you can call Dialog.Box and either use the default or set it via optional parameter</p> ]]></content:encoded> </item> <item><title>By: Renaud Bompuis</title><link>http://blog.nkadesign.com/2008/ms-access-enhanced-message-box-replacement/comment-page-2/#comment-14059</link> <dc:creator>Renaud Bompuis</dc:creator> <pubDate>Fri, 18 May 2012 09:54:14 +0000</pubDate> <guid
isPermaLink="false">http://blog.nkadesign.com/?p=76#comment-14059</guid> <description><![CDATA[&lt;p&gt;@Paut Trotman: you can place the code for setting the default options wherever you want. It only needs to be set once.
Ideally, it should be part of your startup code when you launch your application, either using an AutoExec macro, or a startup Form.&lt;/p&gt;
]]></description> <content:encoded><![CDATA[<p>@Paut Trotman: you can place the code for setting the default options wherever you want. It only needs to be set once.
Ideally, it should be part of your startup code when you launch your application, either using an AutoExec macro, or a startup Form.</p> ]]></content:encoded> </item> <item><title>By: Paul Trotman</title><link>http://blog.nkadesign.com/2008/ms-access-enhanced-message-box-replacement/comment-page-2/#comment-14058</link> <dc:creator>Paul Trotman</dc:creator> <pubDate>Fri, 18 May 2012 07:46:17 +0000</pubDate> <guid
isPermaLink="false">http://blog.nkadesign.com/?p=76#comment-14058</guid> <description><![CDATA[&lt;p&gt;Interesting work-around.
Where should the code to change the default button delay be placed. &quot;Dialog.defaultbuttondelay = 5&quot;&lt;/p&gt;
]]></description> <content:encoded><![CDATA[<p>Interesting work-around.
Where should the code to change the default button delay be placed. &#8220;Dialog.defaultbuttondelay = 5&#8243;</p> ]]></content:encoded> </item> <item><title>By: UdeA</title><link>http://blog.nkadesign.com/2008/ms-access-enhanced-message-box-replacement/comment-page-2/#comment-14056</link> <dc:creator>UdeA</dc:creator> <pubDate>Tue, 08 May 2012 03:29:41 +0000</pubDate> <guid
isPermaLink="false">http://blog.nkadesign.com/?p=76#comment-14056</guid> <description><![CDATA[&lt;p&gt;Hi Friend,&lt;/p&gt;
&lt;p&gt;Your enhanced MsgBox function is Great. No Errors found. Keep Up the Good work.&lt;/p&gt;
&lt;p&gt;UDeA From Colombo - Sri Lanka.&lt;/p&gt;
]]></description> <content:encoded><![CDATA[<p>Hi Friend,</p><p>Your enhanced MsgBox function is Great. No Errors found. Keep Up the Good work.</p><p>UDeA From Colombo -- Sri Lanka.</p> ]]></content:encoded> </item> <item><title>By: Tim</title><link>http://blog.nkadesign.com/2008/ms-access-enhanced-message-box-replacement/comment-page-2/#comment-13918</link> <dc:creator>Tim</dc:creator> <pubDate>Tue, 31 Jan 2012 17:56:46 +0000</pubDate> <guid
isPermaLink="false">http://blog.nkadesign.com/?p=76#comment-13918</guid> <description><![CDATA[&lt;p&gt;It&#039;s working now!  Thanks!&lt;/p&gt;
]]></description> <content:encoded><![CDATA[<p>It&#8217;s working now!  Thanks!</p> ]]></content:encoded> </item> <item><title>By: Tim</title><link>http://blog.nkadesign.com/2008/ms-access-enhanced-message-box-replacement/comment-page-2/#comment-13915</link> <dc:creator>Tim</dc:creator> <pubDate>Mon, 30 Jan 2012 21:12:51 +0000</pubDate> <guid
isPermaLink="false">http://blog.nkadesign.com/?p=76#comment-13915</guid> <description><![CDATA[&lt;p&gt;The zip file EnhancedMsgBox01.zip shows to be corrupted.  I would very much like to see these examples for the Enhanced Message Box.&lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;
&lt;p&gt;Tim&lt;/p&gt;
]]></description> <content:encoded><![CDATA[<p>The zip file EnhancedMsgBox01.zip shows to be corrupted.  I would very much like to see these examples for the Enhanced Message Box.</p><p>Thanks!</p><p>Tim</p> ]]></content:encoded> </item> <item><title>By: JS</title><link>http://blog.nkadesign.com/2008/ms-access-enhanced-message-box-replacement/comment-page-2/#comment-13873</link> <dc:creator>JS</dc:creator> <pubDate>Mon, 02 Jan 2012 11:18:12 +0000</pubDate> <guid
isPermaLink="false">http://blog.nkadesign.com/?p=76#comment-13873</guid> <description><![CDATA[&lt;p&gt;I love the idea of this message box, but I do not use Access, I use Excel, Word and PPT. Would it obe possible to post the text VBA code for the  Enhanced Message Box Replacement (instead of an accdb file)?
Tks, JS&lt;/p&gt;
]]></description> <content:encoded><![CDATA[<p>I love the idea of this message box, but I do not use Access, I use Excel, Word and PPT. Would it obe possible to post the text VBA code for the  Enhanced Message Box Replacement (instead of an accdb file)?
Tks, JS</p> ]]></content:encoded> </item> <item><title>By: Dan</title><link>http://blog.nkadesign.com/2008/ms-access-enhanced-message-box-replacement/comment-page-2/#comment-13820</link> <dc:creator>Dan</dc:creator> <pubDate>Thu, 08 Dec 2011 22:10:00 +0000</pubDate> <guid
isPermaLink="false">http://blog.nkadesign.com/?p=76#comment-13820</guid> <description><![CDATA[&lt;p&gt;I&#039;m asking before I even try, so forgive me if this is basic.  I really like the idea of this message box, however a lot of my databases use macros to run a series of queries, then display a message box when done.  How can I call this message box from within a macro?&lt;/p&gt;
]]></description> <content:encoded><![CDATA[<p>I&#8217;m asking before I even try, so forgive me if this is basic.  I really like the idea of this message box, however a lot of my databases use macros to run a series of queries, then display a message box when done.  How can I call this message box from within a macro?</p> ]]></content:encoded> </item> <item><title>By: Mario</title><link>http://blog.nkadesign.com/2008/ms-access-enhanced-message-box-replacement/comment-page-2/#comment-13765</link> <dc:creator>Mario</dc:creator> <pubDate>Tue, 20 Sep 2011 01:34:33 +0000</pubDate> <guid
isPermaLink="false">http://blog.nkadesign.com/?p=76#comment-13765</guid> <description><![CDATA[&lt;p&gt;This message boxes are  very nice, they really make your app to look better, I was using them for awhil but then decided to change to Office 2010 64 bits and they dont work anymore, .&lt;/p&gt;
]]></description> <content:encoded><![CDATA[<p>This message boxes are  very nice, they really make your app to look better, I was using them for awhil but then decided to change to Office 2010 64 bits and they dont work anymore, .</p> ]]></content:encoded> </item> <item><title>By: Greg</title><link>http://blog.nkadesign.com/2008/ms-access-enhanced-message-box-replacement/comment-page-2/#comment-13546</link> <dc:creator>Greg</dc:creator> <pubDate>Fri, 04 Feb 2011 20:17:27 +0000</pubDate> <guid
isPermaLink="false">http://blog.nkadesign.com/?p=76#comment-13546</guid> <description><![CDATA[&lt;p&gt;Superb! Just came across this, it has given my application a &quot;finished&quot; look. One question, how do I force the application to close after the Dialog.RichBox appears, I checked the example and the check box does not fire any code.&lt;/p&gt;
&lt;p&gt;Cheers
Greg&lt;/p&gt;
]]></description> <content:encoded><![CDATA[<p>Superb! Just came across this, it has given my application a &#8220;finished&#8221; look. One question, how do I force the application to close after the Dialog.RichBox appears, I checked the example and the check box does not fire any code.</p><p>Cheers
Greg</p> ]]></content:encoded> </item> <item><title>By: Sooz</title><link>http://blog.nkadesign.com/2008/ms-access-enhanced-message-box-replacement/comment-page-2/#comment-13539</link> <dc:creator>Sooz</dc:creator> <pubDate>Mon, 24 Jan 2011 18:42:42 +0000</pubDate> <guid
isPermaLink="false">http://blog.nkadesign.com/?p=76#comment-13539</guid> <description><![CDATA[&lt;p&gt;A nice replacement message box, that solves the problem (found under Access 2010) of dialog boxes stopping being &#039;modal&#039; before the user presses a button!&lt;/p&gt;
&lt;p&gt;However, the png graphics image files would really be appreciated...&lt;/p&gt;
&lt;p&gt;My app has to be capable of running under Access 2003, 2007 and 2010 so to keep a similar look and feel I need to create some bitmaps for the old version.&lt;/p&gt;
]]></description> <content:encoded><![CDATA[<p>A nice replacement message box, that solves the problem (found under Access 2010) of dialog boxes stopping being &#8216;modal&#8217; before the user presses a button!</p><p>However, the png graphics image files would really be appreciated&#8230;</p><p>My app has to be capable of running under Access 2003, 2007 and 2010 so to keep a similar look and feel I need to create some bitmaps for the old version.</p> ]]></content:encoded> </item> <item><title>By: MsgBox Placement</title><link>http://blog.nkadesign.com/2008/ms-access-enhanced-message-box-replacement/comment-page-2/#comment-13350</link> <dc:creator>MsgBox Placement</dc:creator> <pubDate>Sun, 26 Dec 2010 19:45:30 +0000</pubDate> <guid
isPermaLink="false">http://blog.nkadesign.com/?p=76#comment-13350</guid> <description><![CDATA[&lt;p&gt;[...] really but you can create your own: http://blog.nkadesign.com/2008/ms-ac...-replacement/##     __________________ (RG for short) aka Allan Bunch MS Access MVP - WinXP Pro, Win7 Pro- acXP, [...]&lt;/p&gt;
]]></description> <content:encoded><![CDATA[<p>[...] really but you can create your own: <a
href="http://blog.nkadesign.com/2008/ms-ac" rel="nofollow">http://blog.nkadesign.com/2008/ms-ac</a>&#8230;-replacement/##     __________________ (RG for short) aka Allan Bunch MS Access MVP -- WinXP Pro, Win7 Pro- acXP, [...]</p> ]]></content:encoded> </item> <item><title>By: Ken Warthen</title><link>http://blog.nkadesign.com/2008/ms-access-enhanced-message-box-replacement/comment-page-2/#comment-12467</link> <dc:creator>Ken Warthen</dc:creator> <pubDate>Tue, 26 Oct 2010 18:15:20 +0000</pubDate> <guid
isPermaLink="false">http://blog.nkadesign.com/?p=76#comment-12467</guid> <description><![CDATA[&lt;p&gt;Do you know of any similar utility for MS Excel?&lt;/p&gt;
&lt;p&gt;Ken&lt;/p&gt;
]]></description> <content:encoded><![CDATA[<p>Do you know of any similar utility for MS Excel?</p><p>Ken</p> ]]></content:encoded> </item> <item><title>By: Deleted Image displayed when in Runtime but not Full Access &#124; The Largest Forum Archive</title><link>http://blog.nkadesign.com/2008/ms-access-enhanced-message-box-replacement/comment-page-2/#comment-12019</link> <dc:creator>Deleted Image displayed when in Runtime but not Full Access &#124; The Largest Forum Archive</dc:creator> <pubDate>Thu, 17 Jun 2010 11:02:11 +0000</pubDate> <guid
isPermaLink="false">http://blog.nkadesign.com/?p=76#comment-12019</guid> <description><![CDATA[&lt;p&gt;[...] found the custom message boxes at http://blog.nkadesign.com/2008/ms-ac&#8230;x-replacement/ and edited it to fit my needs -- Background colours, borders, etc as well as the Images [...]&lt;/p&gt;
]]></description> <content:encoded><![CDATA[<p>[...] found the custom message boxes at <a
href="http://blog.nkadesign.com/2008/ms-ac&#8230;x-replacement/" rel="nofollow">http://blog.nkadesign.com/2008/ms-ac&#8230;x-replacement/</a> and edited it to fit my needs &#8212; Background colours, borders, etc as well as the Images [...]</p> ]]></content:encoded> </item> <item><title>By: Dave</title><link>http://blog.nkadesign.com/2008/ms-access-enhanced-message-box-replacement/comment-page-2/#comment-12000</link> <dc:creator>Dave</dc:creator> <pubDate>Tue, 25 May 2010 14:08:29 +0000</pubDate> <guid
isPermaLink="false">http://blog.nkadesign.com/?p=76#comment-12000</guid> <description><![CDATA[&lt;p&gt;This looks very useful, could you please post the source code so those of us not using 2007 can have a go at extracting those parts that will work in earlier versions?&lt;/p&gt;
&lt;p&gt;Many Thanks,&lt;/p&gt;
&lt;p&gt;Dave&lt;/p&gt;
]]></description> <content:encoded><![CDATA[<p>This looks very useful, could you please post the source code so those of us not using 2007 can have a go at extracting those parts that will work in earlier versions?</p><p>Many Thanks,</p><p>Dave</p> ]]></content:encoded> </item> <item><title>By: Bob Robinson</title><link>http://blog.nkadesign.com/2008/ms-access-enhanced-message-box-replacement/comment-page-2/#comment-11960</link> <dc:creator>Bob Robinson</dc:creator> <pubDate>Fri, 16 Apr 2010 12:57:33 +0000</pubDate> <guid
isPermaLink="false">http://blog.nkadesign.com/?p=76#comment-11960</guid> <description><![CDATA[&lt;p&gt;I would like to use vba code to close a message boc programmatically, as Matthew Pfluger   suggest he can do in his July 23rd, 2009 message. Can someone please tell me how to do this.&lt;/p&gt;
&lt;p&gt;I too am an avid user of your message box replacement.&lt;/p&gt;
&lt;p&gt;Thanks. Bob Robinson&lt;/p&gt;
]]></description> <content:encoded><![CDATA[<p>I would like to use vba code to close a message boc programmatically, as Matthew Pfluger   suggest he can do in his July 23rd, 2009 message. Can someone please tell me how to do this.</p><p>I too am an avid user of your message box replacement.</p><p>Thanks. Bob Robinson</p> ]]></content:encoded> </item> <item><title>By: John</title><link>http://blog.nkadesign.com/2008/ms-access-enhanced-message-box-replacement/comment-page-2/#comment-11900</link> <dc:creator>John</dc:creator> <pubDate>Tue, 16 Feb 2010 08:29:07 +0000</pubDate> <guid
isPermaLink="false">http://blog.nkadesign.com/?p=76#comment-11900</guid> <description><![CDATA[&lt;p&gt;I have downloaded your example database. I&#039;m using Access 2007 but something odd happens. Non of the buttons on the test form seems to activate a trigger. In short, nothing happens. Do you have an explaination for that?&lt;/p&gt;
]]></description> <content:encoded><![CDATA[<p>I have downloaded your example database. I&#8217;m using Access 2007 but something odd happens. Non of the buttons on the test form seems to activate a trigger. In short, nothing happens. Do you have an explaination for that?</p> ]]></content:encoded> </item> <item><title>By: David</title><link>http://blog.nkadesign.com/2008/ms-access-enhanced-message-box-replacement/comment-page-2/#comment-11896</link> <dc:creator>David</dc:creator> <pubDate>Sat, 13 Feb 2010 13:53:58 +0000</pubDate> <guid
isPermaLink="false">http://blog.nkadesign.com/?p=76#comment-11896</guid> <description><![CDATA[&lt;p&gt;Sir, this is most excellent! Thanks for sharing.&lt;/p&gt;
]]></description> <content:encoded><![CDATA[<p>Sir, this is most excellent! Thanks for sharing.</p> ]]></content:encoded> </item> <item><title>By: Lxocram</title><link>http://blog.nkadesign.com/2008/ms-access-enhanced-message-box-replacement/comment-page-1/#comment-11817</link> <dc:creator>Lxocram</dc:creator> <pubDate>Fri, 18 Dec 2009 08:57:19 +0000</pubDate> <guid
isPermaLink="false">http://blog.nkadesign.com/?p=76#comment-11817</guid> <description><![CDATA[&lt;p&gt;Do you have an inputbox variant for this as well?&lt;/p&gt;
&lt;p&gt;If only i had the time to combine this with
http://www.databasejournal.com/features/msaccess/article.php/3848121/Extending-the-InputBox-function-for-MS-Access-Forms.htm&lt;/p&gt;
&lt;p&gt;Spare time? Anybody?&lt;/p&gt;
]]></description> <content:encoded><![CDATA[<p>Do you have an inputbox variant for this as well?</p><p>If only i had the time to combine this with <a
href="http://www.databasejournal.com/features/msaccess/article.php/3848121/Extending-the-InputBox-function-for-MS-Access-Forms.htm" rel="nofollow">http://www.databasejournal.com/features/msaccess/article.php/3848121/Extending-the-InputBox-function-for-MS-Access-Forms.htm</a></p><p>Spare time? Anybody?</p> ]]></content:encoded> </item> <item><title>By: Marianne Berkhof</title><link>http://blog.nkadesign.com/2008/ms-access-enhanced-message-box-replacement/comment-page-1/#comment-11727</link> <dc:creator>Marianne Berkhof</dc:creator> <pubDate>Thu, 08 Oct 2009 12:01:14 +0000</pubDate> <guid
isPermaLink="false">http://blog.nkadesign.com/?p=76#comment-11727</guid> <description><![CDATA[&lt;p&gt;Hi!&lt;/p&gt;
&lt;p&gt;Tnx 4 your beautiful messagebox. I only have one question: is it possible to use a vbTab in the message?&lt;/p&gt;
&lt;p&gt;With regards,
Marianne&lt;/p&gt;
]]></description> <content:encoded><![CDATA[<p>Hi!</p><p>Tnx 4 your beautiful messagebox. I only have one question: is it possible to use a vbTab in the message?</p><p>With regards,
Marianne</p> ]]></content:encoded> </item> <item><title>By: kirkrqm</title><link>http://blog.nkadesign.com/2008/ms-access-enhanced-message-box-replacement/comment-page-1/#comment-11625</link> <dc:creator>kirkrqm</dc:creator> <pubDate>Sat, 08 Aug 2009 12:37:23 +0000</pubDate> <guid
isPermaLink="false">http://blog.nkadesign.com/?p=76#comment-11625</guid> <description><![CDATA[&lt;p&gt;Thanks for the great code!  I added a line to default the dialog caption to the application name if no title is explicitly set.&lt;/p&gt;
&lt;p&gt;First few lines of Form_FormDialog::ShowModal are:
If m_Title &lt;&gt; &quot;&quot; Then
caption = m_Title &amp; &quot; &quot;
Else
caption = CurrentDb.Properties(&quot;AppTitle&quot;)
End If&lt;/p&gt;
]]></description> <content:encoded><![CDATA[<p>Thanks for the great code!  I added a line to default the dialog caption to the application name if no title is explicitly set.</p><p>First few lines of Form_FormDialog::ShowModal are:
If m_Title &lt;&gt; &#8220;&#8221; Then
caption = m_Title &amp; &#8221; &#8221;
Else
caption = CurrentDb.Properties(&#8220;AppTitle&#8221;)
End If</p> ]]></content:encoded> </item> <item><title>By: Matthew Pfluger</title><link>http://blog.nkadesign.com/2008/ms-access-enhanced-message-box-replacement/comment-page-1/#comment-11620</link> <dc:creator>Matthew Pfluger</dc:creator> <pubDate>Wed, 22 Jul 2009 16:13:02 +0000</pubDate> <guid
isPermaLink="false">http://blog.nkadesign.com/?p=76#comment-11620</guid> <description><![CDATA[&lt;p&gt;Thank you for your hard work and the wonderful message box!  A quick comment, I will be using this box to display a warning to my users that I will be terminating their connection so I can perform updates to the back end.  I&#039;d like the Box to AutoClose after a certain period of time regardless of user interaction (or more likely, non-interaction).  I can program this in myself, but it may be a useful feature to others as well.&lt;/p&gt;
&lt;p&gt;Thanks again,
Matthew Pfluger&lt;/p&gt;
]]></description> <content:encoded><![CDATA[<p>Thank you for your hard work and the wonderful message box!  A quick comment, I will be using this box to display a warning to my users that I will be terminating their connection so I can perform updates to the back end.  I&#8217;d like the Box to AutoClose after a certain period of time regardless of user interaction (or more likely, non-interaction).  I can program this in myself, but it may be a useful feature to others as well.</p><p>Thanks again,
Matthew Pfluger</p> ]]></content:encoded> </item> <item><title>By: Uros</title><link>http://blog.nkadesign.com/2008/ms-access-enhanced-message-box-replacement/comment-page-1/#comment-11574</link> <dc:creator>Uros</dc:creator> <pubDate>Mon, 29 Jun 2009 08:33:30 +0000</pubDate> <guid
isPermaLink="false">http://blog.nkadesign.com/?p=76#comment-11574</guid> <description><![CDATA[&lt;p&gt;Thanks for this excelent code, fantastic ... :)&lt;/p&gt;
]]></description> <content:encoded><![CDATA[<p>Thanks for this excelent code, fantastic &#8230; :)</p> ]]></content:encoded> </item> <item><title>By: John White</title><link>http://blog.nkadesign.com/2008/ms-access-enhanced-message-box-replacement/comment-page-1/#comment-10750</link> <dc:creator>John White</dc:creator> <pubDate>Wed, 13 May 2009 11:15:04 +0000</pubDate> <guid
isPermaLink="false">http://blog.nkadesign.com/?p=76#comment-10750</guid> <description><![CDATA[&lt;p&gt;Regarding my last comment... I&#039;ve added a ? button in the same way as your btCopy and BtSave and put  Sendkeys &quot;{F1}&quot; into the Click event to fire my custom help.&lt;/p&gt;
&lt;p&gt;Next issue please, I like to set the mouse pointer to jump to default buttons on dialog boxes which works with the standard Access 2007 dialogs but not with my new good looking ones. Is it possible to obtain this behaviour on the custom dialog box?
Regards John&lt;/p&gt;
]]></description> <content:encoded><![CDATA[<p>Regarding my last comment&#8230; I&#8217;ve added a ? button in the same way as your btCopy and BtSave and put  Sendkeys &#8220;{F1}&#8221; into the Click event to fire my custom help.</p><p>Next issue please, I like to set the mouse pointer to jump to default buttons on dialog boxes which works with the standard Access 2007 dialogs but not with my new good looking ones. Is it possible to obtain this behaviour on the custom dialog box?
Regards John</p> ]]></content:encoded> </item> <item><title>By: John White</title><link>http://blog.nkadesign.com/2008/ms-access-enhanced-message-box-replacement/comment-page-1/#comment-10748</link> <dc:creator>John White</dc:creator> <pubDate>Wed, 13 May 2009 07:23:46 +0000</pubDate> <guid
isPermaLink="false">http://blog.nkadesign.com/?p=76#comment-10748</guid> <description><![CDATA[&lt;p&gt;Brilliant code Renaud... Very helpful... Thanks.
I&#039;m old at Access but new to the type of coding you used to create the enhanced msgbox. I am hoping to use your code to allow users to activate custom help files from a Help button in some dialogs (doesn&#039;t seem to work in standard Access 2007 msgbox - just fires up the Access help even when custom help file and context are indicated)
In my first atte,pts to use your box I see that I can now reach the forms help file using F1 from the dialog.box but it must be possible to use the standard Help button.
Can you help or advise please?
Regards John&lt;/p&gt;
]]></description> <content:encoded><![CDATA[<p>Brilliant code Renaud&#8230; Very helpful&#8230; Thanks.
I&#8217;m old at Access but new to the type of coding you used to create the enhanced msgbox. I am hoping to use your code to allow users to activate custom help files from a Help button in some dialogs (doesn&#8217;t seem to work in standard Access 2007 msgbox -- just fires up the Access help even when custom help file and context are indicated)
In my first atte,pts to use your box I see that I can now reach the forms help file using F1 from the dialog.box but it must be possible to use the standard Help button.
Can you help or advise please?
Regards John</p> ]]></content:encoded> </item> <item><title>By: Renaud</title><link>http://blog.nkadesign.com/2008/ms-access-enhanced-message-box-replacement/comment-page-1/#comment-10227</link> <dc:creator>Renaud</dc:creator> <pubDate>Mon, 09 Mar 2009 02:08:24 +0000</pubDate> <guid
isPermaLink="false">http://blog.nkadesign.com/?p=76#comment-10227</guid> <description><![CDATA[&lt;p&gt;@Tom Dessert: no. I thought some good soul would try. I&#039;d be happy if someone did.&lt;/p&gt;
&lt;p&gt;My main issue is that I don&#039;t have any older version of Access so I can&#039;t really test the implementation and be sure about the result. Just saving the project in an older format won&#039;t work properly at I&#039;m using some A2007-specific features.&lt;/p&gt;
]]></description> <content:encoded><![CDATA[<p>@Tom Dessert: no. I thought some good soul would try. I&#8217;d be happy if someone did.</p><p>My main issue is that I don&#8217;t have any older version of Access so I can&#8217;t really test the implementation and be sure about the result. Just saving the project in an older format won&#8217;t work properly at I&#8217;m using some A2007-specific features.</p> ]]></content:encoded> </item> <item><title>By: Tom Dessert</title><link>http://blog.nkadesign.com/2008/ms-access-enhanced-message-box-replacement/comment-page-1/#comment-10217</link> <dc:creator>Tom Dessert</dc:creator> <pubDate>Thu, 05 Mar 2009 20:28:06 +0000</pubDate> <guid
isPermaLink="false">http://blog.nkadesign.com/?p=76#comment-10217</guid> <description><![CDATA[&lt;p&gt;Have you developed the code for those of us non-Office 2007 users. I have Office 2003 and would really like to apply this enhancement.&lt;/p&gt;
&lt;p&gt;Thanks
Tom&lt;/p&gt;
]]></description> <content:encoded><![CDATA[<p>Have you developed the code for those of us non-Office 2007 users. I have Office 2003 and would really like to apply this enhancement.</p><p>Thanks
Tom</p> ]]></content:encoded> </item> <item><title>By: Renaud</title><link>http://blog.nkadesign.com/2008/ms-access-enhanced-message-box-replacement/comment-page-1/#comment-10105</link> <dc:creator>Renaud</dc:creator> <pubDate>Mon, 23 Feb 2009 04:38:31 +0000</pubDate> <guid
isPermaLink="false">http://blog.nkadesign.com/?p=76#comment-10105</guid> <description><![CDATA[&lt;p&gt;@Ash: thanks. Unfortunately, there is a major show-stopper if you want to get this to work in pre-2007 versions of Access:&lt;/p&gt;
&lt;p&gt;older versions don&#039;t have rich-edit textboxes, so you would probably have to rely on a webbrowser component and that would change a lot.&lt;/p&gt;
&lt;p&gt;If you are OK with being limited to the plain version of the enhanced MsgBox, then your only other issue should be with displaying transparent images for the icons.&lt;/p&gt;
]]></description> <content:encoded><![CDATA[<p>@Ash: thanks. Unfortunately, there is a major show-stopper if you want to get this to work in pre-2007 versions of Access:</p><p>older versions don&#8217;t have rich-edit textboxes, so you would probably have to rely on a webbrowser component and that would change a lot.</p><p>If you are OK with being limited to the plain version of the enhanced MsgBox, then your only other issue should be with displaying transparent images for the icons.</p> ]]></content:encoded> </item> <item><title>By: Ash</title><link>http://blog.nkadesign.com/2008/ms-access-enhanced-message-box-replacement/comment-page-1/#comment-10102</link> <dc:creator>Ash</dc:creator> <pubDate>Mon, 23 Feb 2009 03:42:06 +0000</pubDate> <guid
isPermaLink="false">http://blog.nkadesign.com/?p=76#comment-10102</guid> <description><![CDATA[&lt;p&gt;Great work based on details and comments. I can&#039;t possibly use this utility in Access 2002, can I?&lt;/p&gt;
]]></description> <content:encoded><![CDATA[<p>Great work based on details and comments. I can&#8217;t possibly use this utility in Access 2002, can I?</p> ]]></content:encoded> </item> <item><title>By: Andrew</title><link>http://blog.nkadesign.com/2008/ms-access-enhanced-message-box-replacement/comment-page-1/#comment-10051</link> <dc:creator>Andrew</dc:creator> <pubDate>Tue, 17 Feb 2009 17:22:04 +0000</pubDate> <guid
isPermaLink="false">http://blog.nkadesign.com/?p=76#comment-10051</guid> <description><![CDATA[&lt;p&gt;Thanks for this excelent code. I think it may be usful to a project I may play with later on.&lt;/p&gt;
]]></description> <content:encoded><![CDATA[<p>Thanks for this excelent code. I think it may be usful to a project I may play with later on.</p> ]]></content:encoded> </item> <item><title>By: Ryan</title><link>http://blog.nkadesign.com/2008/ms-access-enhanced-message-box-replacement/comment-page-1/#comment-9961</link> <dc:creator>Ryan</dc:creator> <pubDate>Sat, 07 Feb 2009 12:32:42 +0000</pubDate> <guid
isPermaLink="false">http://blog.nkadesign.com/?p=76#comment-9961</guid> <description><![CDATA[&lt;p&gt;It&#039;s been a long time since I&#039;ve used Access and so I&#039;m getting my feet re-wet. Can you refresh me on some code I would use to call it?&lt;/p&gt;
]]></description> <content:encoded><![CDATA[<p>It&#8217;s been a long time since I&#8217;ve used Access and so I&#8217;m getting my feet re-wet. Can you refresh me on some code I would use to call it?</p> ]]></content:encoded> </item> <item><title>By: Renaud</title><link>http://blog.nkadesign.com/2008/ms-access-enhanced-message-box-replacement/comment-page-1/#comment-9959</link> <dc:creator>Renaud</dc:creator> <pubDate>Sat, 07 Feb 2009 01:23:57 +0000</pubDate> <guid
isPermaLink="false">http://blog.nkadesign.com/?p=76#comment-9959</guid> <description><![CDATA[&lt;p&gt;To Ryan: have you tried calling the RichBox from code rather than directly from the Onclick event handler?&lt;/p&gt;
&lt;p&gt;To Henry: yes please, send the fix and I will update the code and the samples for everyone.
My email is in the footer of the page.
Thank you.&lt;/p&gt;
]]></description> <content:encoded><![CDATA[<p>To Ryan: have you tried calling the RichBox from code rather than directly from the Onclick event handler?</p><p>To Henry: yes please, send the fix and I will update the code and the samples for everyone.
My email is in the footer of the page.
Thank you.</p> ]]></content:encoded> </item> <item><title>By: Henry</title><link>http://blog.nkadesign.com/2008/ms-access-enhanced-message-box-replacement/comment-page-1/#comment-9958</link> <dc:creator>Henry</dc:creator> <pubDate>Fri, 06 Feb 2009 18:48:01 +0000</pubDate> <guid
isPermaLink="false">http://blog.nkadesign.com/?p=76#comment-9958</guid> <description><![CDATA[&lt;p&gt;I fixed your vbDefaultButton behavior bug in Form_Timer(). can I send you the code?&lt;/p&gt;
]]></description> <content:encoded><![CDATA[<p>I fixed your vbDefaultButton behavior bug in Form_Timer(). can I send you the code?</p> ]]></content:encoded> </item> <item><title>By: Ryan</title><link>http://blog.nkadesign.com/2008/ms-access-enhanced-message-box-replacement/comment-page-1/#comment-9953</link> <dc:creator>Ryan</dc:creator> <pubDate>Fri, 06 Feb 2009 01:10:34 +0000</pubDate> <guid
isPermaLink="false">http://blog.nkadesign.com/?p=76#comment-9953</guid> <description><![CDATA[&lt;p&gt;I downloaded your Enhanced MsgBox and it worked great. It definitely fit the bill for what I was doing until I created an ACCDE version for the users. I end up with the error: The expression you entered has a function name that the database can&#039;t find.&lt;/p&gt;
&lt;p&gt;I have the Enhanced MsgBox getting called during an &quot;on click&quot; event on a button by using =RichBox([field]).&lt;/p&gt;
&lt;p&gt;Any ideas?&lt;/p&gt;
]]></description> <content:encoded><![CDATA[<p>I downloaded your Enhanced MsgBox and it worked great. It definitely fit the bill for what I was doing until I created an ACCDE version for the users. I end up with the error: The expression you entered has a function name that the database can&#8217;t find.</p><p>I have the Enhanced MsgBox getting called during an &#8220;on click&#8221; event on a button by using =RichBox([field]).</p><p>Any ideas?</p> ]]></content:encoded> </item> <item><title>By: Andy</title><link>http://blog.nkadesign.com/2008/ms-access-enhanced-message-box-replacement/comment-page-1/#comment-9852</link> <dc:creator>Andy</dc:creator> <pubDate>Wed, 28 Jan 2009 19:02:54 +0000</pubDate> <guid
isPermaLink="false">http://blog.nkadesign.com/?p=76#comment-9852</guid> <description><![CDATA[&lt;p&gt;Hi Renaud - this is awesome :) Just a quick question - is there scope to include customising the buttons?  So rather than the standard vbYes vbNo etc.. you can customise them?&lt;/p&gt;
]]></description> <content:encoded><![CDATA[<p>Hi Renaud -- this is awesome :) Just a quick question -- is there scope to include customising the buttons?  So rather than the standard vbYes vbNo etc.. you can customise them?</p> ]]></content:encoded> </item> <item><title>By: Dan</title><link>http://blog.nkadesign.com/2008/ms-access-enhanced-message-box-replacement/comment-page-1/#comment-9851</link> <dc:creator>Dan</dc:creator> <pubDate>Mon, 26 Jan 2009 19:58:22 +0000</pubDate> <guid
isPermaLink="false">http://blog.nkadesign.com/?p=76#comment-9851</guid> <description><![CDATA[&lt;p&gt;Could someone send me an A2003 version of this code?  This sounds like exactly what I need.&lt;/p&gt;
]]></description> <content:encoded><![CDATA[<p>Could someone send me an A2003 version of this code?  This sounds like exactly what I need.</p> ]]></content:encoded> </item> <item><title>By: Change Color of Text &#124; keyongtech</title><link>http://blog.nkadesign.com/2008/ms-access-enhanced-message-box-replacement/comment-page-1/#comment-9847</link> <dc:creator>Change Color of Text &#124; keyongtech</dc:creator> <pubDate>Sun, 18 Jan 2009 16:44:03 +0000</pubDate> <guid
isPermaLink="false">http://blog.nkadesign.com/?p=76#comment-9847</guid> <description><![CDATA[&lt;p&gt;[...] Change Color of Text     Hi Akilah,  I ran across this that might help you:  http://blog.nkadesign.com/2008/ms-ac...x-replacement/  Bonnie http://www.dataplus-svc.com   Akilah wrote: &gt;Hi, is there a way to change the color of [...]&lt;/p&gt;
]]></description> <content:encoded><![CDATA[<p>[...] Change Color of Text     Hi Akilah,  I ran across this that might help you: <a
href="http://blog.nkadesign.com/2008/ms-ac" rel="nofollow">http://blog.nkadesign.com/2008/ms-ac</a>&#8230;x-replacement/  Bonnie <a
href="http://www.dataplus-svc.com" rel="nofollow">http://www.dataplus-svc.com</a> Akilah wrote: &gt;Hi, is there a way to change the color of [...]</p> ]]></content:encoded> </item> <item><title>By: Renaud</title><link>http://blog.nkadesign.com/2008/ms-access-enhanced-message-box-replacement/comment-page-1/#comment-9331</link> <dc:creator>Renaud</dc:creator> <pubDate>Thu, 30 Oct 2008 07:48:26 +0000</pubDate> <guid
isPermaLink="false">http://blog.nkadesign.com/?p=76#comment-9331</guid> <description><![CDATA[&lt;p&gt;@Scott: glad you find it useful.&lt;br /&gt;
Regarding the default button, it&#039;s not really a feature I wanted to use as one of the points of using this enhanced MessageBox is to force users to stop for a second and think about the action they need to perform rather than just hitting ENTER or ESC without thinking, as is the case with the standard box.&lt;/p&gt;
&lt;p&gt;I&#039;ll make a note of your suggestion for the next update and probably add it as an option (or a default that can be disabled).&lt;/p&gt;
]]></description> <content:encoded><![CDATA[<p>@Scott: glad you find it useful.<br
/> Regarding the default button, it&#8217;s not really a feature I wanted to use as one of the points of using this enhanced MessageBox is to force users to stop for a second and think about the action they need to perform rather than just hitting ENTER or ESC without thinking, as is the case with the standard box.</p><p>I&#8217;ll make a note of your suggestion for the next update and probably add it as an option (or a default that can be disabled).</p> ]]></content:encoded> </item> <item><title>By: Scott Cordwell</title><link>http://blog.nkadesign.com/2008/ms-access-enhanced-message-box-replacement/comment-page-1/#comment-9330</link> <dc:creator>Scott Cordwell</dc:creator> <pubDate>Thu, 30 Oct 2008 03:22:19 +0000</pubDate> <guid
isPermaLink="false">http://blog.nkadesign.com/?p=76#comment-9330</guid> <description><![CDATA[&lt;p&gt;Thanks for this, great enhancement. I don&#039;t seem to be able to get any of the buttons to be the default button, any help would be greatly appreciated.&lt;/p&gt;
&lt;p&gt;Cheers from downunder
Scott&lt;/p&gt;
]]></description> <content:encoded><![CDATA[<p>Thanks for this, great enhancement. I don&#8217;t seem to be able to get any of the buttons to be the default button, any help would be greatly appreciated.</p><p>Cheers from downunder
Scott</p> ]]></content:encoded> </item> <item><title>By: Michael Merlin</title><link>http://blog.nkadesign.com/2008/ms-access-enhanced-message-box-replacement/comment-page-1/#comment-9258</link> <dc:creator>Michael Merlin</dc:creator> <pubDate>Sat, 27 Sep 2008 22:27:31 +0000</pubDate> <guid
isPermaLink="false">http://blog.nkadesign.com/?p=76#comment-9258</guid> <description><![CDATA[&lt;p&gt;@Joey:  should work perfectly fine in .adp&lt;/p&gt;
&lt;p&gt;@Renaud:  brilliant work!&lt;/p&gt;
]]></description> <content:encoded><![CDATA[<p>@Joey:  should work perfectly fine in .adp</p><p>@Renaud:  brilliant work!</p> ]]></content:encoded> </item> <item><title>By: Joey</title><link>http://blog.nkadesign.com/2008/ms-access-enhanced-message-box-replacement/comment-page-1/#comment-9187</link> <dc:creator>Joey</dc:creator> <pubDate>Fri, 19 Sep 2008 18:45:34 +0000</pubDate> <guid
isPermaLink="false">http://blog.nkadesign.com/?p=76#comment-9187</guid> <description><![CDATA[&lt;p&gt;Will this tool work with an .adp file? If so, what mods are necessary?&lt;/p&gt;
]]></description> <content:encoded><![CDATA[<p>Will this tool work with an .adp file? If so, what mods are necessary?</p> ]]></content:encoded> </item> <item><title>By: Stefan Reichelt</title><link>http://blog.nkadesign.com/2008/ms-access-enhanced-message-box-replacement/comment-page-1/#comment-8986</link> <dc:creator>Stefan Reichelt</dc:creator> <pubDate>Wed, 13 Aug 2008 14:17:38 +0000</pubDate> <guid
isPermaLink="false">http://blog.nkadesign.com/?p=76#comment-8986</guid> <description><![CDATA[&lt;p&gt;Whow! What a great enhancement for my Access Tools. I just tried it and was really happy.&lt;/p&gt;
&lt;p&gt;Now there&#039;s a variation I would love to see: A modified InputBox!
Could you do that, too?&lt;/p&gt;
&lt;p&gt;Regards from Germany,&lt;/p&gt;
&lt;p&gt;Stefan&lt;/p&gt;
]]></description> <content:encoded><![CDATA[<p>Whow! What a great enhancement for my Access Tools. I just tried it and was really happy.</p><p>Now there&#8217;s a variation I would love to see: A modified InputBox!
Could you do that, too?</p><p>Regards from Germany,</p><p>Stefan</p> ]]></content:encoded> </item> <item><title>By: Andrew Craven Rohm</title><link>http://blog.nkadesign.com/2008/ms-access-enhanced-message-box-replacement/comment-page-1/#comment-8981</link> <dc:creator>Andrew Craven Rohm</dc:creator> <pubDate>Tue, 12 Aug 2008 10:10:41 +0000</pubDate> <guid
isPermaLink="false">http://blog.nkadesign.com/?p=76#comment-8981</guid> <description><![CDATA[&lt;p&gt;Thank you. Pretty good work.&lt;/p&gt;
&lt;p&gt;There&#039;s one extension I&#039;d like to implement or see implemented, autowrap for long texts.&lt;/p&gt;
&lt;p&gt;There&#039;s one &lt;em&gt;slight&lt;/em&gt; problem with the code as it stands... The Default Buttons are not set properly.  The Code for this looks fine until you notice that the buttons are named in the reverse order to their use.  bt3 is used as button1, etcetera.  The rest of the code reflects this, the Timer event which sets the default does not.  Easy to change in the timer event just replace each occurence of bt1 with bt3 and bt3 with bt1.&lt;/p&gt;
&lt;p&gt;Thanks again,
Andycr&lt;/p&gt;
]]></description> <content:encoded><![CDATA[<p>Thank you. Pretty good work.</p><p>There&#8217;s one extension I&#8217;d like to implement or see implemented, autowrap for long texts.</p><p>There&#8217;s one <em>slight</em> problem with the code as it stands&#8230; The Default Buttons are not set properly.  The Code for this looks fine until you notice that the buttons are named in the reverse order to their use.  bt3 is used as button1, etcetera.  The rest of the code reflects this, the Timer event which sets the default does not.  Easy to change in the timer event just replace each occurence of bt1 with bt3 and bt3 with bt1.</p><p>Thanks again,
Andycr</p> ]]></content:encoded> </item> <item><title>By: Renaud</title><link>http://blog.nkadesign.com/2008/ms-access-enhanced-message-box-replacement/comment-page-1/#comment-8980</link> <dc:creator>Renaud</dc:creator> <pubDate>Tue, 12 Aug 2008 07:51:23 +0000</pubDate> <guid
isPermaLink="false">http://blog.nkadesign.com/?p=76#comment-8980</guid> <description><![CDATA[&lt;p&gt;@Jacques: I can only think of the webbrowser control as a replacement.&lt;br /&gt;
May be too much overhead but it&#039;s worth a try.
I&#039;ve sent you the icons by email.
Let me know if you succeed :-)&lt;/p&gt;
]]></description> <content:encoded><![CDATA[<p>@Jacques: I can only think of the webbrowser control as a replacement.<br
/> May be too much overhead but it&#8217;s worth a try.
I&#8217;ve sent you the icons by email.
Let me know if you succeed :-)</p> ]]></content:encoded> </item> <item><title>By: Jacques</title><link>http://blog.nkadesign.com/2008/ms-access-enhanced-message-box-replacement/comment-page-1/#comment-8979</link> <dc:creator>Jacques</dc:creator> <pubDate>Mon, 11 Aug 2008 22:57:16 +0000</pubDate> <guid
isPermaLink="false">http://blog.nkadesign.com/?p=76#comment-8979</guid> <description><![CDATA[&lt;p&gt;I got stuck...&lt;/p&gt;
&lt;p&gt;A friend sent me the A2003 version, but it now appears that the RichText.ocx is blocked because of security reasons (apparently they deem it safe in A2007). I registered RICHTX32.ocx 6.0 (SP6) under references, but the 2003 mdb doesn&#039;t compile: &#039;acTextFormatHTMLRichText&#039; is not found - I found a registry-patch here: http://p2p.wrox.com/topic.asp?TOPIC_ID=10894 - doesn&#039;t work on my pc.&lt;/p&gt;
&lt;p&gt;There is also a replacement, by Stephan Lebans: http://www.lebans.com/richtext.htm - registering it, didn&#039;t help either.&lt;/p&gt;
&lt;p&gt;Also, the .png images don&#039;t load - apparently they don&#039;t get included on converting - could you include them separately?&lt;/p&gt;
&lt;p&gt;Any suggestions? I really would like to give this replacement a try - I do see its potential, but as I don&#039;t have A2007, I can&#039;t run it as such.&lt;/p&gt;
]]></description> <content:encoded><![CDATA[<p>I got stuck&#8230;</p><p>A friend sent me the A2003 version, but it now appears that the RichText.ocx is blocked because of security reasons (apparently they deem it safe in A2007). I registered RICHTX32.ocx 6.0 (SP6) under references, but the 2003 mdb doesn&#8217;t compile: &#8216;acTextFormatHTMLRichText&#8217; is not found -- I found a registry-patch here: <a
href="http://p2p.wrox.com/topic.asp?TOPIC_ID=10894" rel="nofollow">http://p2p.wrox.com/topic.asp?TOPIC_ID=10894</a> -- doesn&#8217;t work on my pc.</p><p>There is also a replacement, by Stephan Lebans: <a
href="http://www.lebans.com/richtext.htm" rel="nofollow">http://www.lebans.com/richtext.htm</a> -- registering it, didn&#8217;t help either.</p><p>Also, the .png images don&#8217;t load -- apparently they don&#8217;t get included on converting -- could you include them separately?</p><p>Any suggestions? I really would like to give this replacement a try -- I do see its potential, but as I don&#8217;t have A2007, I can&#8217;t run it as such.</p> ]]></content:encoded> </item> <item><title>By: Jack Stockton</title><link>http://blog.nkadesign.com/2008/ms-access-enhanced-message-box-replacement/comment-page-1/#comment-8972</link> <dc:creator>Jack Stockton</dc:creator> <pubDate>Fri, 08 Aug 2008 22:56:16 +0000</pubDate> <guid
isPermaLink="false">http://blog.nkadesign.com/?p=76#comment-8972</guid> <description><![CDATA[&lt;p&gt;Your code is way better that what I have written and really works as a replacement to the standard MsgBox function.&lt;/p&gt;
&lt;p&gt;Would like to suggest an enhancement....ability to specify customer text for two.  I often have a business case where I am displaying a message box asking the user if they  want to replace or open the existing.&lt;/p&gt;
]]></description> <content:encoded><![CDATA[<p>Your code is way better that what I have written and really works as a replacement to the standard MsgBox function.</p><p>Would like to suggest an enhancement&#8230;.ability to specify customer text for two.  I often have a business case where I am displaying a message box asking the user if they  want to replace or open the existing.</p> ]]></content:encoded> </item> <item><title>By: Larry</title><link>http://blog.nkadesign.com/2008/ms-access-enhanced-message-box-replacement/comment-page-1/#comment-8971</link> <dc:creator>Larry</dc:creator> <pubDate>Fri, 08 Aug 2008 22:37:49 +0000</pubDate> <guid
isPermaLink="false">http://blog.nkadesign.com/?p=76#comment-8971</guid> <description><![CDATA[&lt;p&gt;Success! Enhanced Message Boxes are so much easier to identify when they pop up on the screen. The standard msgboxes are so bland they are almost camoflauged. Thank you very much,
Larry&lt;/p&gt;
]]></description> <content:encoded><![CDATA[<p>Success! Enhanced Message Boxes are so much easier to identify when they pop up on the screen. The standard msgboxes are so bland they are almost camoflauged. Thank you very much,
Larry</p> ]]></content:encoded> </item> <item><title>By: Renaud</title><link>http://blog.nkadesign.com/2008/ms-access-enhanced-message-box-replacement/comment-page-1/#comment-8969</link> <dc:creator>Renaud</dc:creator> <pubDate>Fri, 08 Aug 2008 07:20:37 +0000</pubDate> <guid
isPermaLink="false">http://blog.nkadesign.com/?p=76#comment-8969</guid> <description><![CDATA[&lt;p&gt;@Larry,:
you were missing the &lt;code&gt;FormDialog&lt;/code&gt; in your application.&lt;br /&gt;
I have updated the article to list the instructions on how to include the new code into your own application. I realised this was missing.&lt;/p&gt;
]]></description> <content:encoded><![CDATA[<p>@Larry,:
you were missing the <code>FormDialog</code> in your application.<br
/> I have updated the article to list the instructions on how to include the new code into your own application. I realised this was missing.</p> ]]></content:encoded> </item> <item><title>By: Renaud</title><link>http://blog.nkadesign.com/2008/ms-access-enhanced-message-box-replacement/comment-page-1/#comment-8968</link> <dc:creator>Renaud</dc:creator> <pubDate>Fri, 08 Aug 2008 02:26:25 +0000</pubDate> <guid
isPermaLink="false">http://blog.nkadesign.com/?p=76#comment-8968</guid> <description><![CDATA[&lt;p&gt;@Geoffrey: good catch, I have updated the code. Thanks for notifying me.&lt;/p&gt;
&lt;p&gt;@Larry: still not sure why you&#039;re getting this. Could you send me a zip file of your application so I can investigate?
Send it to accessblog#nkadesign* (replacing # by @ and * by .com).&lt;/p&gt;
]]></description> <content:encoded><![CDATA[<p>@Geoffrey: good catch, I have updated the code. Thanks for notifying me.</p><p>@Larry: still not sure why you&#8217;re getting this. Could you send me a zip file of your application so I can investigate?
Send it to accessblog#nkadesign* (replacing # by @ and * by .com).</p> ]]></content:encoded> </item> <item><title>By: Larry</title><link>http://blog.nkadesign.com/2008/ms-access-enhanced-message-box-replacement/comment-page-1/#comment-8967</link> <dc:creator>Larry</dc:creator> <pubDate>Thu, 07 Aug 2008 23:01:32 +0000</pubDate> <guid
isPermaLink="false">http://blog.nkadesign.com/?p=76#comment-8967</guid> <description><![CDATA[&lt;p&gt;Compile error happens in my application which is in a Trusted location. Didn&#039;t rename anything other than MsgBox changed to Box as instructed; for one of my boxes.
Am I supposed to rename something else? The compile error highlights the following VBA code......
Dim f As New Form_FormDialog.
Larry&lt;/p&gt;
]]></description> <content:encoded><![CDATA[<p>Compile error happens in my application which is in a Trusted location. Didn&#8217;t rename anything other than MsgBox changed to Box as instructed; for one of my boxes.
Am I supposed to rename something else? The compile error highlights the following VBA code&#8230;&#8230;
Dim f As New Form_FormDialog.
Larry</p> ]]></content:encoded> </item> <item><title>By: Geoffrey</title><link>http://blog.nkadesign.com/2008/ms-access-enhanced-message-box-replacement/comment-page-1/#comment-8965</link> <dc:creator>Geoffrey</dc:creator> <pubDate>Thu, 07 Aug 2008 16:36:06 +0000</pubDate> <guid
isPermaLink="false">http://blog.nkadesign.com/?p=76#comment-8965</guid> <description><![CDATA[&lt;p&gt;Thanks for the great object!&lt;/p&gt;
&lt;p&gt;Out of Stack Space Error&lt;/p&gt;
&lt;p&gt;Occurs when modifying DefaultButtonDelay
Try modifying the Enable Buttons In: field in sample form&lt;/p&gt;
&lt;p&gt;Problem occurs in module &quot;Dialog&quot;&lt;/p&gt;
&lt;p&gt;Reads:
&lt;code&gt;
Public Property Let DefaultButtonDelay(delay As Long)
If delay &lt; 0 Then delay = 0
DefaultButtonDelay = delay
End Property
&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;Should read:
&lt;code&gt;
Public Property Let DefaultButtonDelay(delay As Long)
If delay &lt; 0 Then delay = 0
m_DefaultButtonDelay = delay
End Property
&lt;/code&gt;&lt;/p&gt;
]]></description> <content:encoded><![CDATA[<p>Thanks for the great object!</p><p>Out of Stack Space Error</p><p>Occurs when modifying DefaultButtonDelay
Try modifying the Enable Buttons In: field in sample form</p><p>Problem occurs in module &#8220;Dialog&#8221;</p><p>Reads:<pre><code>
Public Property Let DefaultButtonDelay(delay As Long)
    If delay &lt; 0 Then delay = 0
    DefaultButtonDelay = delay
End Property
</code></pre></p><p>Should read:<pre><code>
Public Property Let DefaultButtonDelay(delay As Long)
    If delay &lt; 0 Then delay = 0
    m_DefaultButtonDelay = delay
End Property
</code></pre></p> ]]></content:encoded> </item> <item><title>By: Renaud</title><link>http://blog.nkadesign.com/2008/ms-access-enhanced-message-box-replacement/comment-page-1/#comment-8964</link> <dc:creator>Renaud</dc:creator> <pubDate>Thu, 07 Aug 2008 06:07:13 +0000</pubDate> <guid
isPermaLink="false">http://blog.nkadesign.com/?p=76#comment-8964</guid> <description><![CDATA[&lt;p&gt;@Larry: does this happen with the demo or in your application?
Have you renamed the FormDialog? if that&#039;s the case, make sure to change the line where you get the error to reflect the new name.&lt;br /&gt;
Another possibility is security settings: if you&#039;re getting a security warning when opening the file, make sure you open it from a Trusted location or some functions will be disabled.&lt;/p&gt;
&lt;p&gt;@Alan: it&#039;s a good point and it could make replacement much easier, although I usually prefer to err on the side of caution and avoid overriding base functionality to avoid unintended consequences (and keep in line with the &quot;element of least surprise&quot; motto by making things explicit). :-)&lt;/p&gt;
]]></description> <content:encoded><![CDATA[<p>@Larry: does this happen with the demo or in your application?
Have you renamed the FormDialog? if that&#8217;s the case, make sure to change the line where you get the error to reflect the new name.<br
/> Another possibility is security settings: if you&#8217;re getting a security warning when opening the file, make sure you open it from a Trusted location or some functions will be disabled.</p><p>@Alan: it&#8217;s a good point and it could make replacement much easier, although I usually prefer to err on the side of caution and avoid overriding base functionality to avoid unintended consequences (and keep in line with the &#8220;element of least surprise&#8221; motto by making things explicit). :-)</p> ]]></content:encoded> </item> <item><title>By: Alan Cossey</title><link>http://blog.nkadesign.com/2008/ms-access-enhanced-message-box-replacement/comment-page-1/#comment-8963</link> <dc:creator>Alan Cossey</dc:creator> <pubDate>Wed, 06 Aug 2008 20:02:09 +0000</pubDate> <guid
isPermaLink="false">http://blog.nkadesign.com/?p=76#comment-8963</guid> <description><![CDATA[&lt;p&gt;This is excellent. I&#039;ve just added it to a new application and it looks far better and I like the ability to copy the message to the clipboard. It is also very good that it is non-blocking, i.e. I can now more easily chuck users out of my systems if I want, say, after a period of inactivity.
A point that people might find useful is that rather than replace all instances of Msgbox in your code with the word &quot;RichBox&quot;, you can rename the new RichBox function as Msgbox. When your code then goes to call the Msgbox function, it then calls the new function, i.e. the old Msgbox gets overridden and the new function is called instead.&lt;/p&gt;
]]></description> <content:encoded><![CDATA[<p>This is excellent. I&#8217;ve just added it to a new application and it looks far better and I like the ability to copy the message to the clipboard. It is also very good that it is non-blocking, i.e. I can now more easily chuck users out of my systems if I want, say, after a period of inactivity.
A point that people might find useful is that rather than replace all instances of Msgbox in your code with the word &#8220;RichBox&#8221;, you can rename the new RichBox function as Msgbox. When your code then goes to call the Msgbox function, it then calls the new function, i.e. the old Msgbox gets overridden and the new function is called instead.</p> ]]></content:encoded> </item> <item><title>By: Larry</title><link>http://blog.nkadesign.com/2008/ms-access-enhanced-message-box-replacement/comment-page-1/#comment-8962</link> <dc:creator>Larry</dc:creator> <pubDate>Wed, 06 Aug 2008 05:14:06 +0000</pubDate> <guid
isPermaLink="false">http://blog.nkadesign.com/?p=76#comment-8962</guid> <description><![CDATA[&lt;p&gt;Get a compile error when trying to run it. &quot;User defined Type not defined&quot;........Dim f As New Form_FormDialog.
Have the same references checked in my Access 2007 VBA. Looks great. Would like to solve the problem to be able to use it. Thanks.
Larry&lt;/p&gt;
]]></description> <content:encoded><![CDATA[<p>Get a compile error when trying to run it. &#8220;User defined Type not defined&#8221;&#8230;&#8230;..Dim f As New Form_FormDialog.
Have the same references checked in my Access 2007 VBA. Looks great. Would like to solve the problem to be able to use it. Thanks.
Larry</p> ]]></content:encoded> </item> <item><title>By: Moo</title><link>http://blog.nkadesign.com/2008/ms-access-enhanced-message-box-replacement/comment-page-1/#comment-8958</link> <dc:creator>Moo</dc:creator> <pubDate>Tue, 05 Aug 2008 22:33:29 +0000</pubDate> <guid
isPermaLink="false">http://blog.nkadesign.com/?p=76#comment-8958</guid> <description><![CDATA[&lt;p&gt;Renaud,&lt;/p&gt;
&lt;p&gt;I gave it a shot and without the RTF it just wouldn&#039;t be the same; so I chose not to pursue it any further.&lt;/p&gt;
&lt;p&gt;The Access 2007 version is striking! Thanks!&lt;/p&gt;
&lt;p&gt;Moo&lt;/p&gt;
]]></description> <content:encoded><![CDATA[<p>Renaud,</p><p>I gave it a shot and without the RTF it just wouldn&#8217;t be the same; so I chose not to pursue it any further.</p><p>The Access 2007 version is striking! Thanks!</p><p>Moo</p> ]]></content:encoded> </item> <item><title>By: Renaud</title><link>http://blog.nkadesign.com/2008/ms-access-enhanced-message-box-replacement/comment-page-1/#comment-8951</link> <dc:creator>Renaud</dc:creator> <pubDate>Sun, 03 Aug 2008 07:20:07 +0000</pubDate> <guid
isPermaLink="false">http://blog.nkadesign.com/?p=76#comment-8951</guid> <description><![CDATA[&lt;p&gt;Hi Glenn,
thanks for the tip!&lt;/p&gt;
]]></description> <content:encoded><![CDATA[<p>Hi Glenn,
thanks for the tip!</p> ]]></content:encoded> </item> <item><title>By: Glenn</title><link>http://blog.nkadesign.com/2008/ms-access-enhanced-message-box-replacement/comment-page-1/#comment-8947</link> <dc:creator>Glenn</dc:creator> <pubDate>Fri, 01 Aug 2008 08:25:14 +0000</pubDate> <guid
isPermaLink="false">http://blog.nkadesign.com/?p=76#comment-8947</guid> <description><![CDATA[&lt;p&gt;Renaud,&lt;/p&gt;
&lt;p&gt;You can do without the module by manipulating the class module&#039;s Instancing property. The catch is that the property sheet doesn&#039;t allow the setting you need but you can run a single statement in the immediate window to do the job. See this post http://www.utteraccess.com/forums/showthreaded.php?Cat=&amp;Number=1441683&amp;page=&amp;view=&amp;sb=5&amp;o=&amp;vc=1&lt;/p&gt;
&lt;p&gt;Glenn&lt;/p&gt;
]]></description> <content:encoded><![CDATA[<p>Renaud,</p><p>You can do without the module by manipulating the class module&#8217;s Instancing property. The catch is that the property sheet doesn&#8217;t allow the setting you need but you can run a single statement in the immediate window to do the job. See this post <a
href="http://www.utteraccess.com/forums/showthreaded.php?Cat=&#038;Number=1441683&#038;page=&#038;view=&#038;sb=5&#038;o=&#038;vc=1" rel="nofollow">http://www.utteraccess.com/forums/showthreaded.php?Cat=&#038;Number=1441683&#038;page=&#038;view=&#038;sb=5&#038;o=&#038;vc=1</a></p><p>Glenn</p> ]]></content:encoded> </item> <item><title>By: Renaud</title><link>http://blog.nkadesign.com/2008/ms-access-enhanced-message-box-replacement/comment-page-1/#comment-8946</link> <dc:creator>Renaud</dc:creator> <pubDate>Fri, 01 Aug 2008 01:57:40 +0000</pubDate> <guid
isPermaLink="false">http://blog.nkadesign.com/?p=76#comment-8946</guid> <description><![CDATA[&lt;p&gt;@Glenn:
I use a simple module that I call &quot;ClassFactory&quot; whose only purpose is to return an instance of the Classes in the library. Not sure if there is a better way.&lt;/p&gt;
&lt;p&gt;@Moo:
please be my guest. I have been thinking about this recently but since I only have Access 2007 testing for older version is a bit of a challenge.&lt;/p&gt;
&lt;p&gt;Adapting the code to older versions should not be difficult if you stick to plain text. You will have to remove references to the &quot;TextFormat&quot; property of the txtMessage textbox as it is new in Access2007 and used to switch between plain text and rich text.&lt;/p&gt;
&lt;p&gt;As far as I know, the only way to bring rich text to older versions of Access is to use a webbrowser control.&lt;/p&gt;
&lt;p&gt;If you manage to convert it, please send me the updated database so I can host it here for all to find.&lt;/p&gt;
]]></description> <content:encoded><![CDATA[<p>@Glenn:
I use a simple module that I call &#8220;ClassFactory&#8221; whose only purpose is to return an instance of the Classes in the library. Not sure if there is a better way.</p><p>@Moo:
please be my guest. I have been thinking about this recently but since I only have Access 2007 testing for older version is a bit of a challenge.</p><p>Adapting the code to older versions should not be difficult if you stick to plain text. You will have to remove references to the &#8220;TextFormat&#8221; property of the txtMessage textbox as it is new in Access2007 and used to switch between plain text and rich text.</p><p>As far as I know, the only way to bring rich text to older versions of Access is to use a webbrowser control.</p><p>If you manage to convert it, please send me the updated database so I can host it here for all to find.</p> ]]></content:encoded> </item> <item><title>By: Moo</title><link>http://blog.nkadesign.com/2008/ms-access-enhanced-message-box-replacement/comment-page-1/#comment-8945</link> <dc:creator>Moo</dc:creator> <pubDate>Thu, 31 Jul 2008 22:49:26 +0000</pubDate> <guid
isPermaLink="false">http://blog.nkadesign.com/?p=76#comment-8945</guid> <description><![CDATA[&lt;p&gt;This is rather awesome! Mind if I take a shot at back-grading it to Access 97?&lt;/p&gt;
]]></description> <content:encoded><![CDATA[<p>This is rather awesome! Mind if I take a shot at back-grading it to Access 97?</p> ]]></content:encoded> </item> <item><title>By: glenn</title><link>http://blog.nkadesign.com/2008/ms-access-enhanced-message-box-replacement/comment-page-1/#comment-8944</link> <dc:creator>glenn</dc:creator> <pubDate>Thu, 31 Jul 2008 16:26:12 +0000</pubDate> <guid
isPermaLink="false">http://blog.nkadesign.com/?p=76#comment-8944</guid> <description><![CDATA[&lt;p&gt;Renaud,&lt;/p&gt;
&lt;p&gt;Thanks for that. Your explanation makes perfect sense and I can&#039;t think of a compelling reason to suggest that a class based alternative would be preferable. Code libraries are certainly the way to go for frequently used code.&lt;/p&gt;
&lt;p&gt;While using a class in this case doesn&#039;t appear to offer an advantage over your standard module approach, you might be interested to know that there are a couple of ways to include classes in code libraries such that any application using the library can create instances of the relevant classes.&lt;/p&gt;
&lt;p&gt;Glenn&lt;/p&gt;
]]></description> <content:encoded><![CDATA[<p>Renaud,</p><p>Thanks for that. Your explanation makes perfect sense and I can&#8217;t think of a compelling reason to suggest that a class based alternative would be preferable. Code libraries are certainly the way to go for frequently used code.</p><p>While using a class in this case doesn&#8217;t appear to offer an advantage over your standard module approach, you might be interested to know that there are a couple of ways to include classes in code libraries such that any application using the library can create instances of the relevant classes.</p><p>Glenn</p> ]]></content:encoded> </item> <item><title>By: Renaud</title><link>http://blog.nkadesign.com/2008/ms-access-enhanced-message-box-replacement/comment-page-1/#comment-8943</link> <dc:creator>Renaud</dc:creator> <pubDate>Thu, 31 Jul 2008 10:56:18 +0000</pubDate> <guid
isPermaLink="false">http://blog.nkadesign.com/?p=76#comment-8943</guid> <description><![CDATA[&lt;p&gt;Hi Glenn,
I think the main reason I didn&#039;t use a class was that I wanted a drop-in replacement for the standard MsgBox.
Using a class would have required creating an instance of it either every time the box would be used, or stored somewhere in a module.
Classes also become an issue as they cannot be instantiated directly from a library (the way I usually re-use code) and you must end-up having a class factory in a Module instead.&lt;/p&gt;
&lt;p&gt;It doesn&#039;t mean it can&#039;t be done. I just don&#039;t think it bring anything useful doing it in a Class as opposed to a Module in this case.&lt;/p&gt;
&lt;p&gt;Maybe I&#039;m wrong and there is a better way.&lt;/p&gt;
&lt;p&gt;In that case let me know :-)&lt;/p&gt;
]]></description> <content:encoded><![CDATA[<p>Hi Glenn,
I think the main reason I didn&#8217;t use a class was that I wanted a drop-in replacement for the standard MsgBox.
Using a class would have required creating an instance of it either every time the box would be used, or stored somewhere in a module.
Classes also become an issue as they cannot be instantiated directly from a library (the way I usually re-use code) and you must end-up having a class factory in a Module instead.</p><p>It doesn&#8217;t mean it can&#8217;t be done. I just don&#8217;t think it bring anything useful doing it in a Class as opposed to a Module in this case.</p><p>Maybe I&#8217;m wrong and there is a better way.</p><p>In that case let me know :-)</p> ]]></content:encoded> </item> <item><title>By: Glenn</title><link>http://blog.nkadesign.com/2008/ms-access-enhanced-message-box-replacement/comment-page-1/#comment-8942</link> <dc:creator>Glenn</dc:creator> <pubDate>Thu, 31 Jul 2008 10:13:08 +0000</pubDate> <guid
isPermaLink="false">http://blog.nkadesign.com/?p=76#comment-8942</guid> <description><![CDATA[&lt;p&gt;Renaud,&lt;/p&gt;
&lt;p&gt;I have briefly looked over your custom message box concept and like what I see. I am curious, however, because unless I am mistaken you have implemented it in Access using standard modules rather than as a class. Is there any particular reason you didn&#039;t create a class instead?&lt;/p&gt;
&lt;p&gt;Glenn&lt;/p&gt;
]]></description> <content:encoded><![CDATA[<p>Renaud,</p><p>I have briefly looked over your custom message box concept and like what I see. I am curious, however, because unless I am mistaken you have implemented it in Access using standard modules rather than as a class. Is there any particular reason you didn&#8217;t create a class instead?</p><p>Glenn</p> ]]></content:encoded> </item> <item><title>By: Renaud</title><link>http://blog.nkadesign.com/2008/ms-access-enhanced-message-box-replacement/comment-page-1/#comment-8940</link> <dc:creator>Renaud</dc:creator> <pubDate>Wed, 30 Jul 2008 15:11:32 +0000</pubDate> <guid
isPermaLink="false">http://blog.nkadesign.com/?p=76#comment-8940</guid> <description><![CDATA[&lt;p&gt;Thank you for your kind words, I&#039;m glad you found some of these articles useful.&lt;/p&gt;
]]></description> <content:encoded><![CDATA[<p>Thank you for your kind words, I&#8217;m glad you found some of these articles useful.</p> ]]></content:encoded> </item> <item><title>By: Ken Warthen</title><link>http://blog.nkadesign.com/2008/ms-access-enhanced-message-box-replacement/comment-page-1/#comment-8939</link> <dc:creator>Ken Warthen</dc:creator> <pubDate>Wed, 30 Jul 2008 14:14:48 +0000</pubDate> <guid
isPermaLink="false">http://blog.nkadesign.com/?p=76#comment-8939</guid> <description><![CDATA[&lt;p&gt;Renaud,&lt;/p&gt;
&lt;p&gt;Your website was a real find.  I love the enhanced message box utility for Access, as well as the modal dialogs with transparent backgrounds.  These are awesome tools that help Access developers to create interfaces that have some visual appeal.  Thanks so much for your efforts and generosity.&lt;/p&gt;
&lt;p&gt;Ken Warthen&lt;/p&gt;
]]></description> <content:encoded><![CDATA[<p>Renaud,</p><p>Your website was a real find.  I love the enhanced message box utility for Access, as well as the modal dialogs with transparent backgrounds.  These are awesome tools that help Access developers to create interfaces that have some visual appeal.  Thanks so much for your efforts and generosity.</p><p>Ken Warthen</p> ]]></content:encoded> </item> <item><title>By: Anon</title><link>http://blog.nkadesign.com/2008/ms-access-enhanced-message-box-replacement/comment-page-1/#comment-8783</link> <dc:creator>Anon</dc:creator> <pubDate>Mon, 30 Jun 2008 15:59:20 +0000</pubDate> <guid
isPermaLink="false">http://blog.nkadesign.com/?p=76#comment-8783</guid> <description><![CDATA[&lt;p&gt;Simply fantastic, great work, thank you!&lt;/p&gt;
]]></description> <content:encoded><![CDATA[<p>Simply fantastic, great work, thank you!</p> ]]></content:encoded> </item> <item><title>By: Marvin</title><link>http://blog.nkadesign.com/2008/ms-access-enhanced-message-box-replacement/comment-page-1/#comment-8778</link> <dc:creator>Marvin</dc:creator> <pubDate>Mon, 30 Jun 2008 06:00:04 +0000</pubDate> <guid
isPermaLink="false">http://blog.nkadesign.com/?p=76#comment-8778</guid> <description><![CDATA[&lt;p&gt;Simply smart! Thank you, Sir!&lt;/p&gt;
]]></description> <content:encoded><![CDATA[<p>Simply smart! Thank you, Sir!</p> ]]></content:encoded> </item> <item><title>By: Renaud</title><link>http://blog.nkadesign.com/2008/ms-access-enhanced-message-box-replacement/comment-page-1/#comment-8613</link> <dc:creator>Renaud</dc:creator> <pubDate>Sat, 07 Jun 2008 08:04:01 +0000</pubDate> <guid
isPermaLink="false">http://blog.nkadesign.com/?p=76#comment-8613</guid> <description><![CDATA[&lt;p&gt;Thank you Edwin.
There are plenty more that I&#039;d like to do, just a matter of finding the time...&lt;/p&gt;
]]></description> <content:encoded><![CDATA[<p>Thank you Edwin.
There are plenty more that I&#8217;d like to do, just a matter of finding the time&#8230;</p> ]]></content:encoded> </item> <item><title>By: Edwin Blancovitch</title><link>http://blog.nkadesign.com/2008/ms-access-enhanced-message-box-replacement/comment-page-1/#comment-8579</link> <dc:creator>Edwin Blancovitch</dc:creator> <pubDate>Wed, 04 Jun 2008 21:00:00 +0000</pubDate> <guid
isPermaLink="false">http://blog.nkadesign.com/?p=76#comment-8579</guid> <description><![CDATA[&lt;p&gt;WAO !!&lt;/p&gt;
&lt;p&gt;i cannot say more . . .
this is extremely good . . .&lt;/p&gt;
&lt;p&gt;i saw other solutions but yours surpass all others, congratulations . . .&lt;/p&gt;
&lt;p&gt;keep on doing the good work . . .&lt;/p&gt;
]]></description> <content:encoded><![CDATA[<p>WAO !!</p><p>i cannot say more . . .
this is extremely good . . .</p><p>i saw other solutions but yours surpass all others, congratulations . . .</p><p>keep on doing the good work . . .</p> ]]></content:encoded> </item> </channel> </rss>