By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,963 Members | 1,751 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,963 IT Pros & Developers. It's quick & easy.

Msgbox firing twice

P: n/a

I am using a message box that is displayed when the user selects a Yes radio button. This messagbox should only be displayed if the required fields are not entered
The message box seems to appear twice for some reason rather than once!!!
It apppears for the first time when i first click the 'yes radio button'. When i click 'Yes' in this messagebox, the NoRadiobutton is checked but the same messagebox seems to reappear!!
Can someone tell me what im doin wrong

This is my code...

If Not ((ComboBox1.Text = "") Or (ComboBox2.Text = "") Or (textbox1.Text = "") The
DataGrid1.Visible = Tru
ComboxBox4.Visible = Tru
txtMealQty.Visible = True
Else : MsgBox("Please ensure all the required fields are entered correctly
before proceeding with the booking"
NoRadioButton.Checked = Tru
DataGrid1.Visible = Fals
End I

Jul 21 '05 #1
Share this Question
Share on Google+
2 Replies

P: n/a
Hi Avni,

Probably you have set this procedure in a event from the NoRadiobutton, or
another that changes automaticly if you set NoRadioButon.
(checkbox change or something)
That we cannot see And if you set the NoRadioButton.Checked to true that
NoRadioButton.Checked = True
DataGrid1.Visible = False

I hope this helps?


Jul 21 '05 #2

P: n/a
Hello Cor,

thx for your input. U were right. :o)
The Problem is now solved.
Jul 21 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.