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.

Unique Numbering By Field

Featured Replies

I have a database of projects. Each project has a project number. I want each project of a given project number to have a unique number.

So there would be records with project number 0101 and unique number 1, 2, 3 ,4, etc.,

Also projects with number 0102 would have unique numbers 1,2,3,etc.,

How in the world do I do this?

Thanks in advance, you guys rock.

Tim.

1. you could assign a serial number in your db..

2. you could generate and assign a random alpha-numeric in your db.

For 2., the basic calculation line to generate one random number is:

Middle ("ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789", Int (Random* 36, 1)

for two alpha-numerics:

Middle ("ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789", Int (Random* 36, 1) &

Middle ("ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789", Int (Random* 36, 1)

For more add as many of these as needed:

Middle ("ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789", Int (Random* 36, 1) &

And you can alter the code to meet your needs.

Peace

Keith M. Davie

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.