Make the global a plain text field: you need _text_ to set into the
date field in Find mode. If it is a date field it will not store your
date range.
Be sure to use the proper date range search syntax.
E.g. "7/1/08...7/3/08" or "07/01/2008...07/03/2008"
j.
On Jul 4, 2008, at 4:10 PM, Nicholas Geti wrote:
Is not a calculated value also a Global?
Before I can continue I found that the Find is not working on date
ranges. I can manually enter a single date and get the correct
records. When I enter a range I get everything that matches the day
and month but different years. This is crazy.
I had already tried your suggestion about setting up another global
variable and copying to it from the Combined Dates for Find. It sort
of worked by putting only the first date of a range into the Find
field. It dropped the second date.
----- Original Message ----- From: "Ralph Lilienkamp" <[EMAIL PROTECTED]
>
To: <[email protected]>
Sent: Friday, July 04, 2008 2:00 PM
Subject: Re: Cannot enter date field for FIND from script
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
--
Jonathan Fletcher
[EMAIL PROTECTED]
Project Foreman
NewMedia Construction Co.