I've had a similar situation using FM9 where I KNEW there were records it
SHOULD find.

The solution turned out to be rebuilding the index for that field.

1: Go to Manage -> Database
2: Turn OFF indexing to the field
3: Enter browse mode
4: Go to Manage -> Database
5: Turn ON indexing to the field
6: Enter browse mode
7: Do you "Find"

See if that works!

I'd had a couple of freezes on my Mac, and I reckon that caused corruption.
FM9 appears very sensitive to index corruption. I had more that one field's
index corrupted, but once I did the above technique (after a Save As
Compacted Copy, natch!) it is working as expected.

I hope this solves your problem.

-----


on 29/9/07 1:08 PM, barbpassman at [EMAIL PROTECTED] wrote:

> Thank you
> I can tell you that your third scenario is also busted.
> There are  Parent records in which there are empty fields in the Child record
> ( there is no data no records, in the related Child table matching
> the Parent record, so the child record fields in the portal are
> empty..correctly so.
> ( this is actually a database of Parent volunteers who may or may not
> have real children participating in the same program.. I know out of
> 400+ records there are 31 people who have no children in the
> particular program. So the portal,which displays the names  of an
> adults children will show empty fields when the adult does not have
> children enrolled )
> 
> Both Finds, the unsuccessful and the successful were done by asking
> FMP to find child records.
> I  used the "=" symbol in the child record in the portal and got failure
> I used the "*" symbol also in the child record in the portal and was
> successful
> 
> I just set the indexing as you suggested. That did not solve this
> strange situation.
> There must be something I did to one of the tables as I get the same
> error if I launch FMP 8.5
> And the fact that the find works properly on another child field in
> the portal is driving me kind of batty.
> All three fields in which I have tried to use find are  text fields.
> The third field is a hybrid of numbers and letters. The two fields in
> which I cannot successfully  identify blank records  are text (First
> and last names ).
> 
> I bet the solution is simple but I cannot find it.(sorry :))
> Sincerely
> Barbara
> 
> Sincerely
> Barbara
> 
> At 9:23 AM -0400 9/28/07, Jason DeLooze wrote:
>> 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

-- 
Xavier Tras

Reply via email to