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.

Can't get Case function to work

Featured Replies

I have an inventory DB, Tables are "Product","WholesaleProduct", "Invoice","Suppliers" and "Product Item Detail". When I create an invoice on the Invoice portal I have the fields Wholesale Product ID, Product Description and Product ID. The product ID is my number the wholesale product ID is the supplier number. I want to be able to enter either number & have the product description come up. I have created another field called Product Calculated Name to hold the formula Case ( Wholesaler Product ID>1 ;Product Description::Product Description;Product ID >1 ; Product Description::Product Description )The formula works when I enter the Product ID but it does not work when I enter the wholesale product ID. Can anyone please tell me what I am doing wrong?;)

Thanks for any assistance offered I've included the file for clarification.

DR_Sample.zip

I found the problem. You are pulling the wrong data from the wrong field in the wholesale lookup.

Your calculation says:

Case ( Wholesaler Product ID > 1 ;Product Description::Product Description ;Product ID > 1 ; Product Description::Product Description )

Change it to this and it will work:

Case ( Wholesaler Product ID ≠ "" ;WHOLESALE PRODUCTS::Product Description;Product ID ≠ "" ; Product Description::Product Description )

_____

See the wholesale products lookup?

Also, I suggest you change your logic to = "" as opposed to > 1. The = "" means "does not equal an empty field". >1 might not work if you have a product id of 1 (even though this is probably unlikely.)

Another suggestion is that when you change pricing in this database, your invoices are going to change in value as well. if you were to go back to this invoice in 1 year, the totals will be different because the calculation is unstored.

I suggest using the lookup on a regular text field or number field, or for multiple relationships, using a calculated text/number field and use the case and lookup function.

Hope this helps!

Good job!

  • Author

Thankyou for your suggestions, the formula worked but I'm not sure what you mean in your last sentence "I suggest using the lookup on a regular text field or number field, or for multiple relationships, using a calculated text/number field and use the case and lookup function."

Should I scrap the "Product Calculated Name" and try to get the results I need in another way? I'm pretty new to this, the more I do the more confused I get, which is probably why I've tried to achieve these results in many ways but have not been successful. If your could provide some clarrification I'd apppreciate it Thanks

Create an account or sign in to comment

Important Information

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

Account

Navigation

Search

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.