Barbara
You need to do the FIND in the PARENT table on a calculated field
that tests the presence of CHILD records.
eg. isvalid(some field visible via the relationship)
eg. isempty( some field visible via the relationship)
and have those calcs return a yes/no 0/1 on/off type of answer
then search on the calc'd field - slow as it will be unstored, but
you will get the result you want.
Stephen
On Sep 30, 2007, at 9:04 PM, barbpassman wrote:
John et al,
What I am after is your 2)
Which parent records have NO child records.
I have some work arounds but I thought there might be a simpler
direct way to find these records.
Apparently there is not .
I understand now that when I used my blank field symbol I am asking
FMP to look for records which do not exist. If they don't exist,
FMP can not give me data on what does not exist.
I have NO child records with blank name fields so FMP told me
correctly that it could not find any such records.
I thinking like a human being,not like a computer or calculator :)
Thank you
Barbara
Thank you
At 9:07 AM -0700 9/30/07, John Allen wrote:
On Sep 29, 2007, at 8:48 PM, barbpassman wrote:
If I can find all the records which DO have related records ,by
using the asterisk in the Name field(of the related record) in
the portal,
Why doesn't putting the equal sign in the same field produce all
the records which have NO associated records from the second
(child) table?
This really isn't a FM issue. Any relational database will give
you a nonsense answer when you ask it to show you the parent
records where parent::child.field is empty when parent::child
doesn't exist for a particular record. In SQL the result you are
after can be achieved more elegantly/simply but there are still
two distinct queries you are after:
1) Where the relationship does exist, which child records don't
have a first name?
2) Which parent records have NO child records (i.e. the
relationship doesn't exist)
John
Stephen
---
ɹǝsodɯoɔ/uɐıɔısnɯ 'ɐddɐz ʞuɐɹɟ -- .ɹǝǝq ɐ pǝǝu
noʎ ʇsɐǝ1 ʎɹǝʌ ǝɥʇ ʇɐ ʇnq 'suodɐǝʍ ɹɐǝ1ɔnu
ǝɯos ɹo 'ɯɐǝʇ 11ɐqʇooɟ ɐ ɟo puıʞ ǝɯos ǝʌɐɥ noʎ
ɟı sd1ǝɥ ʇı .ǝuı1ɹıɐ uɐ puɐ ɹǝǝq ɐ ǝʌɐɥ noʎ
ssǝ1un ʎɹʇunoɔ 1ɐǝɹ ɐ ǝq ʇ,uɐɔ noʎ