Hi,
Bit dumbstruck here, cannot understand why I get the negative result when I am validating an input field. In form1 I call form 2 with an openargs. In openargs I insert "|" & "Enquire" & "|" and in Form2 on the OPEN event, I split the Openargs by "|" and place the value in a string fielda. Then I validate if fielda = "Enquire" and if true I set Form2 control properties, i.e
If fielda = "Enquire" Then
allowadditions = false
else
allowaddition = true
end if
I placed a msgbox to display fielda and it contains "Enquire", however, it still tells me that fielda is not equal to "Enquire"
Am I misunderstanding the concept of the if statement or can you only validate for Numerics and True/False values.
Please help because I am really beginning to get frustrated and beginning to code things that does not make logical sense, i.e. in the above code, I swap my allowadditions around, i.e. if true, make false and if false, make true... very confusing if someone else had to maintain the program code at a later stage.
Thanks
Earl