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.

Featured Replies

Quick background first. Pretty familiar with MS Access albeit a year rusty, and am now working in a Filemaker environment, have literally just installed FM10, and am very new.

I'm trying to create a field that autofills itself with the first five letters of a company name (once a company name is entered into the company name field), then sticks a unique 5 digit number on the end. For example, if I create JobServe as a company, it should autofill as;

JOBSE/10000

Then if I add IBM as a company it should go in as;

IBM__/10001

(_ is used to denote two spaces)

Hope that's clear! Is this possible?

Thanks in advance.

Edited by Guest

Hi Steve, welcome to FM Forums!

I suggest you keep the auto-enter serial number of 10000 and increment by 1. And use THIS id (called CustomerID) for all relationships. YOu really don't want to use a field with meaning (part of the company name) for relationships because, what if they change the company name (hey, it can happen)? Unique serials should be meaningless.

Then you can create a calculation (type text) with your special 'display' number you've requested (just be sure you don't use this number for relationships):

Let ( [

co = Left ( CompanyName ; 5 ) ;

pad = 5 - Length ( co )

] ;

co & Right ( "_____" ; pad ) & "/" & CustomerID

)

This calculation has 5 spaces within the quotes, indicated by 5 underlines.

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.