Hi Nicholas,
All fields except globals are empty in the find mode. So make a
global and set your data in it before entering find mode. Then use
set field to put the global into find field in your script. Easier &
better than copy & paste.
On Jul 4, 2008, at 12:46 PM, 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.
Ralph