FIlemaker 5.5 - Searching by Date (ugh)

I'm having a problem trying to perform a find on a date field.  Basically, I'm trying desparately to search a date range.  The first paramter for the date range is a field, and the second is Today (or `//`).  Everytime I try to do a scipted or manual find, is craps out trying to figure out the date field (by crap out, I mean it doesn't find anything).  This is becoming an issue as we are working mainly with date ranges throughout this whole project.  Luckily, it's just beginning, but this is problem enough to bug me.

All help would be appreciated.  If you could show me how to search by date ranges that would be great.
LVL 1
mgonyeaAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
smphotoConnect With a Mentor Commented:
First check to see how your system is set for date formatting.
Filemaker defaults to the system setting, but prefers the following format - m/d/yyyy. If you use this
format on your system for date entry, it will work better. For reports you can customize the date format
to suit you.

Second, if you are trying to make this work in a script, then you have to use the script command - Insert
Calculated Result - to input the date range into the date field you are searching on.
The calculation inserted should be as follows:
DateToText(1st_date_field &"..."& Today).

This inputs the date as text provided the date in the 1st_date_field is in the proper format - m/d/yyyy.

This should work. Let me know.
0
 
weedCommented:
Cant reproduce the problem here. Command-F to initiate a Find. In the date field i enter the start date, select the popup that indicates range "..." and also for the todays date parameter "//". Hit the find button and it pops up the correct range. It may be a problem with your field being set to something other than Date. Or perhaps the date field wants a different format for the dates. 1/1/01 instead of 1/1/2001. Something to think about.
0
 
smphotoCommented:
First check to see how your system is set for date formatting.
Filemaker defaults to the system setting, but prefers the following format - m/d/yyyy. If you use this format on your system for data entry, it will work better. For reports you can customize the date format to suit you.

Second, if you are trying to make this work in a script, then you have to use the script command - Insert Calculated Result - to input the date range into the date field you are searching on.
The calculation inserted should be as follows:
DateToText(1st_date_field &"..."& Today).

This inputs the date as text provided the date in the 1st_date_field is in the proper format - m/d/yyyy.

This should work. Let me know.
0
Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
weedCommented:
smphoto: please read the guidelines for posting comments and answers.
0
 
ComTechCommented:
Hello smphoto, your commnet could still be considered, but please use the Comment vs. the Answer button, here is why:

Advice for Experts on Providing Solutions Through Comments or Answers

Experts may post solutions to your question in the form of a comment or answer, so be sure to check every email notification as soon as it arrives. Often, an Expert posts the solution to your problem as a comment because it is early in the collaboration process and other issues may be involved. In addition, it is common etiquette in some topics areas to always post comments and not answers. There are several reasons behind this thinking:

Questions do not become prematurely locked and the collaboration process is not inhibited when the question is indexed as open for proposed solutions.
The question-asker has the power to select the best solution rather than one that is simply suggested as an answer.
**Watch out for unclear or multiple-part questions. You can send a comment to the member requesting that they rephrase or break up the question before you submit an answer.
**If you don't know the answer, leave the question for someone else.
**If you are unsure of your solution, post it as a comment rather than an answer. Members can accept comments as solutions and award points for them.
**You are only responsible for providing one reasonable answer.
**You may review information about a member, including their grading history, by clicking on their member name.

Taken from the Site Rules on Answering a Question.  

Regards,
ComTech
CS Admin @ EE
0
 
mgonyeaAuthor Commented:
Dang.  I came up with a different solution than yours, smphoto; however, your solution also worked, so I'm awarding the points anyways.

Thanks a bunch.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.