No found records - stop modify find message

No found records - stop modify find message

Post by gwmbo » Tue, 10 Sep 2002 13:08:27



Hi

FM 5.5 Dev Win2K

I have a script something like this

Go to Layout...
Enter Find Mode
Set Field.......
Perform Find[]
If["statusfoundcurrent] > 0]
   script steps to create report and preview it then return to original
layout - this works
else
   Show message["No records found']
   Show All Records
   Go to Layout........
End If

What I was tyring to do was not have FileMaker show the standard message
when records are not found and allow them to modify the find - the script is
run by a button and does not need any entry from the user.  I tried the
Error Capture step at off but may not be using it right - not sure - anyway
anyone have any ideas?

Greg

 
 
 

No found records - stop modify find message

Post by Bridget Ele » Tue, 10 Sep 2002 13:13:37


You need to include Set Error Capture  before Perform Find, and set it to
"On".

--
Bridget Eley



Quote:> Hi

> FM 5.5 Dev Win2K

> I have a script something like this

> Go to Layout...
> Enter Find Mode
> Set Field.......
> Perform Find[]
> If["statusfoundcurrent] > 0]
> script steps to create report and preview it then return to original
> layout - this works
> else
> Show message["No records found']
> Show All Records
> Go to Layout........
> End If

> What I was tyring to do was not have FileMaker show the standard message
> when records are not found and allow them to modify the find - the script is
> run by a button and does not need any entry from the user.  I tried the
> Error Capture step at off but may not be using it right - not sure - anyway
> anyone have any ideas?

> Greg


 
 
 

No found records - stop modify find message

Post by gwmbo » Tue, 10 Sep 2002 13:17:22


Silly me - many thanks :o)


> You need to include Set Error Capture  before Perform Find, and set it to
> "On".

> --
> Bridget Eley



> > Hi

> > FM 5.5 Dev Win2K

> > I have a script something like this

> > Go to Layout...
> > Enter Find Mode
> > Set Field.......
> > Perform Find[]
> > If["statusfoundcurrent] > 0]
> > script steps to create report and preview it then return to original
> > layout - this works
> > else
> > Show message["No records found']
> > Show All Records
> > Go to Layout........
> > End If

> > What I was tyring to do was not have FileMaker show the standard message
> > when records are not found and allow them to modify the find - the
script is
> > run by a button and does not need any entry from the user.  I tried the
> > Error Capture step at off but may not be using it right - not sure -
anyway
> > anyone have any ideas?

> > Greg

 
 
 

1. Find First, Find Next, Find Previous, Find Last

Hi,

I'm trying to migrate some code using the OO4O objects of Oracle to
ADO.  In Oracle, the Dynaset has 4 methods to find data : FindFirst,
FindNext, FindPrevious and FindLast.  No simple Find method.

The code I have to migrate use those 4 methods and I'm not sure if I
understand right, but I think FindFirst find the first row in the
dynaset matching the criteria.  FindLast the last one forward.
FindNext, the next one starting at the current row and FindPrevious,
the previous starting at the current row.  

I don't know how to implement it with ADO.  I know I can set an option
to backward or forward.  But is there an quivalent to FindLast or
FindFirst?

Thanks for your help

Ronney

2. US Postal Zipcode TTF Font & how to use it. - postfont.zip (1/1)

3. finding modified/updated records

4. Problems with fonts and ListBoxes in VFP 3.0

5. Finding and modifying a related record from one portal to another

6. Does special character break the index?

7. ODBC stops finding records after 100 hits !

8. * URGENT: assign a recordset to a data bound grid at runtime.

9. Finding a record without Find/Seek methods...

10. Finding How many records found

11. Find returns mostly blank fields for first found record (FMP5)

12. Eliminate "no records found" message

13. Message display when 0 records found