Skip 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.

Simple Calculation

Featured Replies

Hi all,

I'm quite new at FileMaker, and I've been having some trouble getting it to do something which is really simple, but which I can't figure out.

I've been asked by a friend who runs a charity (a free language school for kids in Slovakia) to do a small database for him. All is OK, except he wants the kids attending this school to be attributed a separate number, which looks like this : ABCC, where A is 1 to 9, according to the year they first attended, B is either 0 or 5 (1st or 2nd semester), CC is 01 to 99 and is the individual kid's number. Don't ask me why, but he wants to keep this system, as he says it's clear to him. So 1521 means it's the 21st person to attend in the second semester of the 1st year of the school's existence.

Anyway, when a new kid joins a class, I need FM to look up the last number in the "Number" field, and just add a 1, with the possibility of modifying that number when a new school year or semester starts.

I don't know if I'm very clear here, and I suppose I could go on searching, but it's 7 am, and I want to go to sleep.

If any of you can help out, I'd be most grateful.

Rob

You can create new field Number which is calculation=Right(ABCC,2) which returns number.Then Summary field Max_Number which is Max(Number), so your new kid`s number will be Max_Number+1 in the foundset of records for current year and current semester. This is the one of the ways. There is many ways to do this.

  • Author

aaa,

Thanks fot the tip. Using your advice and a little bit of imagination, I managed to get the result I was looking for.

Create an account or sign in to comment

Important Information

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

Account

Navigation

Search

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.