Thread: symbol
View Single Post
  #3 (permalink)  
Old Sep 27th, 2005, 12:27
Andy Couch - UK Access UG Andy Couch - UK Access UG is offline
New Member
Join Date: Sep 2005
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Symbol

If ([Vendor Name] <> [VN]) then

You are correct in using <> as meaning not equal, but there is a catch here.

Because you are using what appears to be a control or field value [Vendor name] is a variant variable.

If either [Vendor Name] or [VN] has no value, that is null. Then you logic test will fail. You could either test for null or use the NZ function to get around this.

Also the comparision will be insensitive to upper or lower case.
Reply With Quote