----- Original Message ----- 
  From: Richard S. Russell 
  To: [email protected] 
  Sent: Saturday, July 05, 2008 3:09 PM
  Subject: Re: Cannot enter date field for FIND from script




  On 2008 Jul 4, at 12:46, Nicholas Geti wrote:


    That did not help. I am finding that the "Combined Dates for Find" is empty 
when doing the FIND on the layout.

      ----- Original Message -----
      From: Richard S. Russell
      To: [email protected]
      Sent: Friday, July 04, 2008 11:58 AM
      Subject: Re: Cannot enter date field for FIND from script




      On 2008 Jul 4, at 10:39, Nicholas Geti wrote:


        I want to do a FIND on a calculated field but the field will not fill 
from a script. I can enter the date range manually and it works.

        I am running FMP 5.5

        The field is calculated from a reference to another table:
        Actual Invoice Date     Calculation    Unstored, = Sales Invoice number 
to invoice number::Invoice Date
        Result is Date format

        My script is:
        Go to Layout ("Inventory Control Records")
        Enter Find Mode (Restore)
        Copy (Select "Combined Dates for Find"
        Paste (Select, "Actual Invoice Date")

        The input field is:
        Combined Dates for Find    Calculation   Unstored, = DateToText(Start 
Date) & ".."  & DateToText(End Date)
        Result is Text format

        All I get during the script is an empty Actual Invoice Date field.






      Try doing your Copy BEFORE you go into "Find" mode.




  At what point in the process do you enter "Start Date" and "End Date"? Are 
those global fields or does each record have its own values for them?

  I set up a form to ask the user to fill in these two values. They are Global 
in the same table as the one that will be browsed. Then I defined the Combined 
Dates for Find just as everyone suggested.

Reply via email to