DFehrenbach Posted November 11, 2013 Posted November 11, 2013 HAving difficulty getting this to work: have table of records each with a from and to date. have global from and to dates. have a clac field in each table record (isConcurent?) set to yes/no if the from and to dates of the table record fall anywhere within the global date range. have a relationship in table based on global field containing "yes" as equal to "isConcurrent?" I want to on a layout for any table record, a portal showing all other table records within the global date range. Portal never shows any records.
LaRetta Posted November 11, 2013 Posted November 11, 2013 The problem is, the calculation references global fields so it must be unstored. The 'portal' side must be stored. You might remove the calculation completely and instead change the relationship. Create a self join (another copy in the graph of the same table): MainTable::gFrom <= MainTable 2::Date AND MainTable::gTo >= MainTable 2::Date 1
comment Posted November 11, 2013 Posted November 11, 2013 IIUC, it's a range-to-range relationship, so it needs to be: YourTable::gFromDate ≤ YourTable 2::ToDate AND YourTable::gToDate ≥ YourTable 2::FromDate 1
DFehrenbach Posted November 11, 2013 Author Posted November 11, 2013 << self-inflicted dope slap>> Thank you so much for both your repies, I was using the calculation route because I couldn't figure out how to do the range to range relationship. Much simpler!!! thanks again.
Recommended Posts
This topic is 4090 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