Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 6098 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

Hi Guys,

I run a Macintosh computer rental company and am trying to finally update my database. I would like to create a button or field that searches for all records that begin, end or have an action date (will be all differernt fields) for a specific date which I enter. In other words, I'd like to be able to enter today's date and view all of my computer rentals that either start today, end today, or have some sort of action flagged for today. Can this be done? And how?

Many thanks in advance...I'm quite desperate! :

-Phil

Posted

Use a global field (e.g. gDate) and a script something like this:

Enter Find Mode []

Set Field [start date ; gDate]

New Record/Request

Set Field [end date ; gDate]

New Record/Request

Set Field [action date ; gDate]

Perform Find []

Posted

Ok, sorry. I figured out that that means global date...

But how do you do both as you showed? i.e.

[start date; gdate]

Thanks!

-Phil

Posted

Ok. Here's what I have so far that isn't working:

I want to have a Date Field I can enter a date into called "Search Date"

I would like to be able to enter a date value for this Search Date and have a script pull up all of the records for:

Commencement Date

End Date

Action Date

Can I do this?

Posted

You could try putting a Custom Dialog command in front of what Fitch has already shown you- this would allow you to enter a date.The set Field "" command will make sure that the date entry box is empty every time you run the script

SetField [gdate} ; ""]

Show Custom Dialog ["Please enter search date]; Gdate]

Posted

"You could try putting a Custom Dialog command in front of what Fitch has already shown you- this would allow you to enter a date.The set Field "" command will make sure that the date entry box is empty every time you run the script

SetField [gdate} ; ""]

Show Custom Dialog ["Please enter search date]; Gdate]

"

Hi, thanks for the reply, but I'm too novice to understand what the semicolon and "" functions are and how to set them?

Thanks!

Posted

FileMaker 6 uses commas instead of semicolons. I whipped up an example file for you, have fun.

DateFinder.zip

Posted

By the way Phil, the pair of quotation marks in Robert's example is just a way of saying "blank" or "empty" or "clear this field."

Posted

Fitch & Robert,

I must sincerely thank the both of you. Your patience and willingness to help me out were pretty outstanding. I was able to get that search working and I'm very grateful!

What a great forum I've found here!

-Phil

This topic is 6098 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.