dbTalk Databases Forums  

Option Group Message Box

comp.databases.ms-access comp.databases.ms-access


Discuss Option Group Message Box in the comp.databases.ms-access forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
zufie
 
Posts: n/a

Default Option Group Message Box - 06-17-2009 , 02:54 PM






I have an Option Group on my form.

I want to comment out the Message Box that opens up upon clicking on
either of the checkboxes in the Option Group.

I have attempted to do this by commenting out the following line of
code:
'MsgBox Me.FrameReferralType

Why does this not work?

Any suggestions?

Thanks in advance!,

John

Here is all of my code hehind the Option Group:

Private Sub FrameReferralType_AfterUpdate()
UpdateReferral
End Sub
------------------------------------------------------------------------------------------
Private Sub UpdateReferral()
'MsgBox Me.FrameReferralType
Select Case Me.FrameReferralType
Case 1 'IBCCP
'Dehighlight the "Other" fields
Me.ChckSatisfiedWithHelpReceivedYes.BorderColor = 16777215
Me.ChckSatisfiedWithHelpReceivedNo.BorderColor = 16777215
Me.ChckInNeedFurtherAssistanceYes.BorderColor = 16777215
Me.ChckInNeedFurtherAssistanceNo.BorderColor = 16777215
'Highlight the IBCCP fields
Me.ChckSatisfiedWithHelpReceivedYes.BorderColor = 16777215
Me.ChckSatisfiedWithHelpReceivedNo.BorderColor = 16777215
Me.ChckInNeedFurtherAssistanceYes.BorderColor = 16777215
Me.ChckInNeedFurtherAssistanceNo.BorderColor = 16777215
Case 2 'Other
'Dehighlight the IBCCP fields
Me.ChckSatisfiedWithHelpReceivedYes.BorderColor = 16777215
Me.ChckSatisfiedWithHelpReceivedNo.BorderColor = 16777215
Me.ChckInNeedFurtherAssistanceYes.BorderColor = 16777215
Me.ChckInNeedFurtherAssistanceNo.BorderColor = 16777215
'Highlight the "Other" fields
Me.ChckSatisfiedWithHelpReceivedYes.BorderColor = &HFF
Me.ChckSatisfiedWithHelpReceivedNo.BorderColor = &HFF
Me.ChckInNeedFurtherAssistanceYes.BorderColor = &HFF
Me.ChckInNeedFurtherAssistanceNo.BorderColor = &HFF
End Select
End Sub

Reply With Quote
  #2  
Old   
zufie
 
Posts: n/a

Default Re: Option Group Message Box - 06-17-2009 , 03:16 PM






On Jun 17, 2:54*pm, zufie <john.marru... (AT) illinois (DOT) gov> wrote:
Quote:
I have an Option Group on my form.

I want to comment out the Message Box that opens up upon clicking on
either of the checkboxes in the Option Group.

I have attempted to do this by commenting out the following line of
code:
*'MsgBox Me.FrameReferralType

Why does this not work?

Any suggestions?

Thanks in advance!,

John

Here is all of my code hehind the Option Group:

Private Sub FrameReferralType_AfterUpdate()
UpdateReferral
End Sub
---------------------------------------------------------------------------*---------------
Private Sub UpdateReferral()
'MsgBox Me.FrameReferralType
* * Select Case Me.FrameReferralType
* * * * Case 1 'IBCCP
* * * * * * 'Dehighlight the "Other" fields
* * * * * * Me.ChckSatisfiedWithHelpReceivedYes.BorderColor = 16777215
* * * * * * Me.ChckSatisfiedWithHelpReceivedNo.BorderColor = 16777215
* * * * * * Me.ChckInNeedFurtherAssistanceYes.BorderColor =16777215
* * * * * * Me.ChckInNeedFurtherAssistanceNo.BorderColor = 16777215
* * * * * * 'Highlight the IBCCP fields
* * * * * * Me.ChckSatisfiedWithHelpReceivedYes.BorderColor = 16777215
* * * * * * Me.ChckSatisfiedWithHelpReceivedNo.BorderColor = 16777215
* * * * * * Me.ChckInNeedFurtherAssistanceYes.BorderColor =16777215
* * * * * * Me.ChckInNeedFurtherAssistanceNo.BorderColor = 16777215
* * * * Case 2 'Other
* * * * * * 'Dehighlight the IBCCP fields
* * * * * * Me.ChckSatisfiedWithHelpReceivedYes.BorderColor = 16777215
* * * * * * Me.ChckSatisfiedWithHelpReceivedNo.BorderColor = 16777215
* * * * * * Me.ChckInNeedFurtherAssistanceYes.BorderColor =16777215
* * * * * * Me.ChckInNeedFurtherAssistanceNo.BorderColor = 16777215
* * * * * * 'Highlight the "Other" fields
* * * * * * Me.ChckSatisfiedWithHelpReceivedYes.BorderColor = &HFF
* * * * * * Me.ChckSatisfiedWithHelpReceivedNo.BorderColor = &HFF
* * * * * * Me.ChckInNeedFurtherAssistanceYes.BorderColor =&HFF
* * * * * * Me.ChckInNeedFurtherAssistanceNo.BorderColor = &HFF
* * End Select
End Sub
It's working now!

Don't ask me why?!

Thanks!

J

Reply With Quote
  #3  
Old   
zufie
 
Posts: n/a

Default Re: Option Group Message Box - 06-17-2009 , 03:17 PM



On Jun 17, 2:54*pm, zufie <john.marru... (AT) illinois (DOT) gov> wrote:
Quote:
I have an Option Group on my form.

I want to comment out the Message Box that opens up upon clicking on
either of the checkboxes in the Option Group.

I have attempted to do this by commenting out the following line of
code:
*'MsgBox Me.FrameReferralType

Why does this not work?

Any suggestions?

Thanks in advance!,

John

Here is all of my code hehind the Option Group:

Private Sub FrameReferralType_AfterUpdate()
UpdateReferral
End Sub
---------------------------------------------------------------------------*---------------
Private Sub UpdateReferral()
'MsgBox Me.FrameReferralType
* * Select Case Me.FrameReferralType
* * * * Case 1 'IBCCP
* * * * * * 'Dehighlight the "Other" fields
* * * * * * Me.ChckSatisfiedWithHelpReceivedYes.BorderColor = 16777215
* * * * * * Me.ChckSatisfiedWithHelpReceivedNo.BorderColor = 16777215
* * * * * * Me.ChckInNeedFurtherAssistanceYes.BorderColor =16777215
* * * * * * Me.ChckInNeedFurtherAssistanceNo.BorderColor = 16777215
* * * * * * 'Highlight the IBCCP fields
* * * * * * Me.ChckSatisfiedWithHelpReceivedYes.BorderColor = 16777215
* * * * * * Me.ChckSatisfiedWithHelpReceivedNo.BorderColor = 16777215
* * * * * * Me.ChckInNeedFurtherAssistanceYes.BorderColor =16777215
* * * * * * Me.ChckInNeedFurtherAssistanceNo.BorderColor = 16777215
* * * * Case 2 'Other
* * * * * * 'Dehighlight the IBCCP fields
* * * * * * Me.ChckSatisfiedWithHelpReceivedYes.BorderColor = 16777215
* * * * * * Me.ChckSatisfiedWithHelpReceivedNo.BorderColor = 16777215
* * * * * * Me.ChckInNeedFurtherAssistanceYes.BorderColor =16777215
* * * * * * Me.ChckInNeedFurtherAssistanceNo.BorderColor = 16777215
* * * * * * 'Highlight the "Other" fields
* * * * * * Me.ChckSatisfiedWithHelpReceivedYes.BorderColor = &HFF
* * * * * * Me.ChckSatisfiedWithHelpReceivedNo.BorderColor = &HFF
* * * * * * Me.ChckInNeedFurtherAssistanceYes.BorderColor =&HFF
* * * * * * Me.ChckInNeedFurtherAssistanceNo.BorderColor = &HFF
* * End Select
End Sub
It's working now!

Don't ask me why?!

Thanks!

J

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.