Msgbox firing twice

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi

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
 
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
fires.
NoRadioButton.Checked = True
DataGrid1.Visible = False

I hope this helps?

Cor
 
Back
Top