ddinisco Posted June 18, 2008 Posted June 18, 2008 I need to relate a group records to a portal by a date range of any record for 'this week' (monday-friday). Each record will have a date field, but I was looking for a slick way to create the key on the other side of the relationship. If Wed...date-1, date-2, date, date+1, date+2. Don't mind writing the calc, just don't want it to be a slow field to calculate. Thanks in advance David
mr_vodka Posted June 18, 2008 Posted June 18, 2008 Create a calc as such. Let ( d = Get ( CurrentDate ); d - DayOfWeek ( d ) + 2 & ¶ & d - DayOfWeek ( d ) + 6 ) Then your keys for your relationship of the portal will be something like this. cDateRangeCalc ≤ RecordDate cDateRangeCalc ≥ RecordDate
Recommended Posts
This topic is 6061 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