Jump to content

Getting information from related table


tottijohn
 Share

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

Recommended Posts

I have a layout form, A, with several fields like the following;

Restaurant Pax Rate Total

1.

2.

.

.

10.

Each field is individual, meaning there is a total of 40 fields for the above example.

The (restaurant field) is a dropdown valuelist from the next table, B. This table allows user to input the rate for each restaurant, so that the rate will be automatically fill-in when the user selects the restaurant in form A.

For single record, i can simply relate both tables (restaurant field) and use the (rate field)from table B in form A, but for this case, i can't since each (rate field) in form A is unique, for account purposes. Anyone can enlighten me on this?

Link to comment
Share on other sites

Yes, of course: a calculation field in the Main table (result is number) =

Sum ( MainDetails::Rate )

will do just that.

Note that for a printed report, you would use a summary field in the MainDetails table, and sub-summarize the report by Main.

Link to comment
Share on other sites

This topic is 5753 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
 Share

×
×
  • Create New...

Important Information

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