anita hamis Posted January 23, 2002 Posted January 23, 2002 Hi all i have this database that shows records that have been input in different days. say mon,tue etc. i have several buttons that take a user to records based on the date. i have succeded in showing todays records(using the insert calculated result(current date) to perform a search and give out the records. One snag though, when it comes to showing records for a particular range of dates ..the thing just fails it only shows records for one date and not all the records that are within the range. is there a way of modifying this: (Day(Status(CurrentDate)-3) & "/" & Month(Status(CurrentDate)-3) & "/" & Year(Status(CurrentDate)-3) so that i can get all the records that fall within this range? thanks anita
danjacoby Posted January 23, 2002 Posted January 23, 2002 Your calc only shows one date, not a range. That's why it's returning one date. You need to define two dates, a beginning date and an end date, and separate them with the range symbol (...). HTH, Dan
anita hamis Posted January 24, 2002 Author Posted January 24, 2002 Thanks for the reply. i have done that..put the range symbol(in between the starting date and ending date) but there is an error message saying that this(...) cannot be evaluated. i wonder what that means?? anita.
anita hamis Posted January 25, 2002 Author Posted January 25, 2002 This is very strange. I have tried all the methods i know but an arror message still comes. How come this range symbol cannot be evaluated? its like this:- Day(Status(CurrentDate)-3)..Day (Status ( CurrentDate )) & "/" & Month(Status(CurrentDate)-3)..Month (Status ( CurrentDate )) & "/" & Year(Status(CurrentDate) -3)..Year (Status ( CurrentDate )) This should give me the dates from the day before yesterday untill today. Thanks anita thanks anita
ZuperZZ Posted January 25, 2002 Posted January 25, 2002 Anita, To get a range of dates try this: 1. Create two Global fields, Initial_Date and End_Date 2.In the script: Enter Find Mode [] Set field ["Date","Initial_Date"] Insert Text ["Date","..."] Insert Calculated ["Date","End_Date"] Perform Find [] ZZ PD. * Instead of (Day(Status(CurrentDate)-3) & "/" & Month(Status(CurrentDate)-3) & "/" & Year(Status(CurrentDate)-3) use the "Today" function.
anita hamis Posted January 28, 2002 Author Posted January 28, 2002 Thanks a lot that worked perfect! i only had to use the date to text function instead of insert text. anita
Recommended Posts
This topic is 8406 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 accountSign in
Already have an account? Sign in here.
Sign In Now