How do I create a query that uses multiple fields to do the linking between
tables when sometimes some of the values in one or two of the fields have
zero length values in them? I cannot set a rule that will not allow zero
length because we are using a table from someone elses database and the data
already exists in the tables.
Right now I have done some testing and if I eliminate the link between the
zero length fields the data shows up with the link in there, no data!
Thanks for you help.
Sylvain Lafontaine - 16 Nov 2005 17:11 GMT
If Zero length value the same thing as Null or as "" for you?
Try something like:
... From A join B on ((A.id = B.id or A.id is Null or A.id = "") and (A.Id2
= B.Id2) and ....)

Signature
Sylvain Lafontaine, ing.
MVP - Technologies Virtual-PC
E-mail: http://cerbermail.com/?QugbLEWINF
> How do I create a query that uses multiple fields to do the linking
> between
[quoted text clipped - 8 lines]
>
> Thanks for you help.