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.

Relationship or Lookup?

Featured Replies

Hi Guys!

I am a total newbie and this is my first post here smile.gif

I still work on my Invoice db and now have a new problem:

In my Invoice I have a Value List for different Currencys ie. "

Hi Mats,

Good to see you on Forum and welcome! smile.gif

I think it might work better to store your Bank Account details in your Contacts file, as each Contact will have different account information. And since the bank account information is a 1:1 (one-to-one) with your Contacts, that's where it might be better suited. If each Contact has more than one Bank Account, you would want to keep your Bank Details db instead and include a field for ContactID so each record reflected a different account for each Contact. Your Statement of Account report could then be generated from your Contacts file instead of the Invoice file. It would then work to have a Bank file, which would contain specifics about each Bank (such as their phone number, address, etc.). smirk.gif

If you established the above type of structure, when an Invoice is created and the ContactsID is inserted, the Bank Account details would (could) appear below the Contact address, etc. The account information, after all, would apply to the Invoice and not the LineItems. Just something to consider. smile.gif

Even so bad that if I make a Relationship "Banking Details =::Account SEK" and use the above "if" calculation, the whole FM Crashes.

Mats, your Invoices db needed to be restored twice just to bring it back and it continues to crash on you. It's not that establishing the relationship is wrong, it's that your Invoices db is funky. I've already given you my suggestion ... that you probably have to re-do your Invoices db. You can try deleting any graphics and layouts (one at a time) and re-saving, I guess, and see if you can delete whatever is messed up; but creating the relationship isn't what is causing it to crash on you, I'm afraid. Better to re-do it now than once you've progressed any further. And it's good to know that you now have backup procedures in place. laugh.gif

Back to your Bank Details db ... What do you currently store in this db? You had it previously just holding Account information - each field a different account. Do you now have a ContactsID in it? If so, you could join from Invoice:ContactID to BankDetail::ContactID, but I think you'll still crash.

LaRetta

  • Author

Hi LaRetta,

No the Bank Details have nothing to do with the Customers as such. The Bank Details have the function to ONLY include my Company's Bank account number for the invoiced currency, as I have a different account for each currency.

I then don't have to wright all the account numbers on the same invoice smile.gif

Hi Mats,

I thought I saw your currency and account details in your Lineitems. Maybe that was your previous structure. Well that makes more sense. smile.gif

LaRetta

  • Author

So what shall I do to make it work wink.gif

/Mats

I don't know the answer to that Mats. You need to identify why it keeps crashing on you. crazy.gif I just tried the above calculation in the relationship you specified and it doesn't crash my WinXP! wink.gif Maybe others can you give you some ideas. smile.gif

LaRetta

Corruption to be suspected here I fear...

Try to restore the file.

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.