Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Price based on type and size

Featured Replies

Is any-one able to help me i am currently making a database for a restraunt and I am trying to get a price to display when I select a type of drink followed by a size both these values should correspond to give the price any help on this matter would be greatly appreciated

There are a few ways to do this, but this is probably the simplest. Make a compound key field based on the type and size. So, assuming that your fields are called "DrinkType" and "Size," you could make a calculated key field "TypeSize" with the formula:

DrinkType & Size

Then use TypeSize as the key field to your price table relationship.

Then in your related price table, you need to have a record for every drink type and size combination with a corresponding key field TypeSize. Like so:

TypeSize Price

--------------

BeerSmall $2.50

BeerMedium $3.00

BeerLarge $4.00

ScotchSmall $3.00

ScotchLarge $4.00

MartiniSmall $3.50

MartiniLarge $4.50

etc.

  • Author

Thank you very much bob sorry about the double post people

Create an account or sign in to comment

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.