Jump to content

Setting a Calculation Field to the most recent or first field in a portal


picnichouse

This topic is 6647 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Hello folks,

I have two Tables, Orders and Products. On the Orders Layout, there is a Portal going to Products, related by an OrderID key.

I need to create a calculation field in the Orders table that stores the price of the Most recently added product in the list. I also need a calculation field that stores the first products price. What's the best way to do this?

Thanks a lot!

Andrew

Link to comment
Share on other sites

  • 3 weeks later...

You may already have the relationship based on the portal. If you are not doing any kind of sort in this relationship then use this relationship to show the price of the first product.

Duplicate the above relationship and use Paul's suggestion above. But I am not sure that on which field you would perform a sort to bring the most recent product on the top? Do you have any auto-enter key on products table?

Link to comment
Share on other sites

This topic is 6647 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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.