Jump to content
Server Maintenance This Week. ×

Using data from inactive tab


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

Recommended Posts

As one will soon be able to see I'm a novice at using FM and I need some help trying to figure out how to use data from inactive tabs for a calculation on the main layout. What I have is four tabs in a layout and I would like to add the contents from a field of each tab and show that in the layout where the tabs exist. When I try it I only get the result to be the contents from the "active" tab. Is there help? I can send the file if this explanation fails to make sense.

Thank you in advance.

Link to comment
Share on other sites

Tab control are layouts objects. As such, they are ignored by calculations. It's not quite clear from your description whether you actually need to calculate anything, or just show existing data. If the latter, you can simply put another instance of the same field on the layout.

Link to comment
Share on other sites

Thanks for the response. As I said I'm a novice so I really don't understand everything yet. I do need calculations as i am try to sum fields that are on each of the four different tabs. Every calculation I try seems to sum only the active tab.

Link to comment
Share on other sites

A calculation field such as Sum ( field1 ; field2 ; field3 ; field4 ) will return the sum of values in the 4 fields (from the same record) - regardless of where they are on any layout, or even IF they are on any layout. If you're seeing something else, then you must have some other problem.

Link to comment
Share on other sites

Ok, here is the file. To activate the top tab the vehicle field must be the same as the tab. M3 = M3, F150=F150 and so on. If you look you'll see a set of numbers under the "Fuel Records" these should be the total from the information on the four tabs. This is an unfinished file but I'd like to solve this problem first.

Thank You so much for any help.

Fuel_Data_Copy.fp7.zip

Link to comment
Share on other sites

Your problem is deeper than that - the data needs to be structured in an entirely different way. I am not sure this will help you at this stage, before you have learned the basics of relational design, but you need a table of vehicles and ONE table for all mileage/fueling data. Having duplicate tables for each vehicle will not get you very far: what if you add a vehicle? Will you then rework your file?

---

P.S. Here is a somewhat similar thread:

http://www.fmforums.com/forum/showtopic.php?tid/176142/

Link to comment
Share on other sites

This topic is 5923 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.