This is my code at the moment
Code:
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
is it possible to reverse the if statement so it would be like this

Code:
If Text2.Text DOES NOT EQUAL GetSetting "app1","reg","PID", "" Then
MsgBox "Incorrect registration details"
Else

' quite abit of code

End If
Thanks in advance
chris1990