Hi Barbara,

As I read your inquiry, I thought of several scenarios which can produce the 
Find result your described.  However, each of these scenarios was eliminated, 
except one, based on your further experiments and work-around.

At first I thought the field in question may contain a <space> or other 
non-visual character, thereby appearing to be empty when it was not.  However, 
your work-around - omitting records whose field has some content - would have 
also omitted these "blank-appearing" records.  Scenario busted.

Then I thought the index must be corrupt.  Normally, a record with a field that 
contains no value (is empty) has no entry in the field's index tree.  Searching 
for an "empty" value involves gathering the record ids from the field's index 
tree nodes and removing those record ids from the list of all record ids (in 
the table), thereby leaving those record ids which have no entry in the index; 
that is, have no value in the field.  However, your work-around does 
essentially the same thing: Finding records in which a field has any Content 
(using the * criteria) involves gathering the record ids from each node of the 
field's index tree - and omitting them removes their record ids from the list 
of all record ids.  In other words, the same procedure as when finding empty 
records.  Another scenario busted.

Then I realized you initially described Finding Child records (having an empty 
field) via a portal from the Parent table, but your additional experiments and 
work-around must have been performed directly in the Child table (child layout) 
and not through a portal from the Parent table.  The significant difference is 
that, when searching from the Context of the Parent table via a portal to the 
Child table, you are asking FMP to Find all *Parent* records which have at 
least one related Child record whose field is empty.  To do this, FMP first 
finds all Child records whose field is empty; then FMP maps those found Child 
records (via the join) to the corresponding Parent records.  If *all* the found 
Child records have no matching Parent records (are orphaned), FMP will display 
the message "no matching records".

It is this 3rd scenario - orphaned Child records - which may be your problem.  
It was unclear from your description that you actually saw in the portal of 
some Parent a Child record whose field was empty.  However, if you did see such 
a Child record in the portal, and the field was really empty and not containing 
a <space> or other non-visual character, then this 3rd scenario has also been 
busted - and we're back to the drawing board.
===

Rebuild the index of the field in question.  Set the field's indexing to "None" 
and enable the "Automatically create the index as needed".  Switch to Browse 
mode and perform a Find on the field, thereby building a new index.

Regards,
Jason L. DeLooze
Annapolis, MD  USA



On 9/28/07 at 12:32 AM -0500, barbpassman wrote:
> I have used FileMaker for years.
> Suddenly have a problem with the Find mode.. in FileMaker Pro 9
> 
> trying to identify which records,in a series of over 400 have a certain field 
> blank.
> The field,whose content may be blank is from a related table and the field is 
> in a portal.
> 
> I suddenly find that the tried and true Find command, inserting the equal 
> sign in the field no longer gives me the records wherein this field is blank
> the command to find BLANK fields is not working
> 
> I now get the message that there are no records matching my criteria.
> But that is NOT true.
> 
> IF I scroll my 400+ records I can see some (infrequent) records where the 
> precise field in question is blank.
> What puzzles me is that the same query in another field from the same related 
> table, from the same record , will produce valid results.
> What could possibly cause this to happen? That I can query my database for 
> blank fields in some instances but not always?.
> 
> I have checked the layout of the portal and fields in question, can find no 
> reason why FileMakier cannot find records to match my query. They are vanilla 
> text fields set to index (which should augment FIND). No formatting or 
> anything special done to the fields( These are name fields: "First Name" and 
> "Last Name")
> 
> Work around I used was to  ask FMP 9 to find all the records where the fields 
> in question HAVE content.
> I then omitted those records and thus found the 31 records I wanted to find.I 
> created a flag field, quickly inserted a character in that field.
> NOW if I do a find on the flag field I can always find those 31 records .
> 
> 
> What logic am I overlooking?
> 
> Thank you
> Barbara

Reply via email to