This is my code at the moment
is it possible to reverse the if statement so it would be like thisCode:Form Load() Text1.Text = GetSetting "app1","reg","name", "" XpBs1.Value = True If Text2.Text = GetSetting "app1","reg","PID", "" Then ' quite abit of code Else MsgBox "Incorrect registration details" End If
Thanks in advanceCode:If Text2.Text DOES NOT EQUAL GetSetting "app1","reg","PID", "" Then MsgBox "Incorrect registration details" Else ' quite abit of code End If
chris1990




Reply With Quote