DukeS Posted October 1, 2004 Posted October 1, 2004 Hi! I have a problem with adding new records and data. I have one table with records of dates (valid from and valid to) and prices. Exmpl.: 1.1.2000 / 10.1.2000 / 100$ In other table I want to add record with current date and also the price for that date. I need something that will pull out the correct price for current date. Should I write a script that goes in other layout and searches for date or is there a different way to accomplish this? Thanks for any help Dean
transpower Posted October 1, 2004 Posted October 1, 2004 Try a calculation field rather than a script.
-Queue- Posted October 1, 2004 Posted October 1, 2004 In your other table I would add an auto-entered creation date field (if you don't have one already). Then create a relationship to your price table using CreationDate >= price::dateValidFrom AND CreationDate <= price::dateValidTo Then you can use an auto-enter calculation of relationship::price.
DukeS Posted October 2, 2004 Author Posted October 2, 2004 Yep, that's right! Everything is working fine. Thank you very much.
Recommended Posts
This topic is 7360 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