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.

newbie in need of formula for PO number

Featured Replies

  • Newbies

Hello..... I'm new to filemaker pro. Using it for about 2 weeks now.

just upgraded to FMP 5.5.

I need to auto-serial a PO number Field. The Field have to look like

XX##/YY/ZZ where

XX = Cust Ref (Related by Custmer Name in Contacts File)

## = Year in 01,02,03 format

YY = Supplier Ref (Related by Supplier Name in Contacts File)

ZZ = Auto generated no. (+1)

I can actually do this using 4 different fields instead of 1.

But I believe there is a calca or Formula of some sort to achieve the same result.

Pls Help me

Thank you very Much

Hey auguzt.

1. If you haven't already, create a date field called CreationDate. Select it in Define Fields, then click the Options button. On the Auto-Enter tab, check "the", then select Creation Date from the drop-down box beside it.

2. Create a text field called RecordSerialNumber. In Auto-Enter, check "Serial number". In the "next value" box change the "1" to "10001" (a personal preference; now all of your serial numbers will have the same number of digits.

3. Create a calculation field call PONumber. Make sure that the "Calculation result is" box says "Text". Use this formula:

ContactsByCustmerName::Cust ref & Right( Year(CreationDate), 2) & "/" & ContactsBySupplierName::Supplier ref & "/" & RecordSerialNumber

(I took the liberty of naming your relationships)

4. The result should look like: CR01/SR/10001

That oughtta do 'er.

Post again if I haven't understood what you need.

Paul

  • Author
  • Newbies

Thank you very much pspafford.

smile.gif" border="0

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.