Problem with a lookup field

Problem with a lookup field

I have a form (A) in which I incorporate a lookup field to form(B) //for client names - string field

The name retrieves ok and displays ("ABC Ltd") which is what I want. Later, I wish to test that the field is actually "ABC Ltd" to then show/hide other fields. Creator specifies a lookup as type "long" and I can't then test as it will return a numeric such as 720050000. IS there any way to handle this?

Thanks
Greg