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.

Serial Number of Salesperson

Featured Replies

Hi guys,

I urgently need to have this problem solved.

I have a 2 files, one that keep track of the resellers and the other stores the salesperson record. The records are linked by unique serial number, after the admin enter the reseller details, admin will have to assign a new unique serial number for the salesperson as well.

The serial number for the saleperson looks like this :

0001-001 ->companyA salesman 1

0001-002 ->companyA salesman 2

0002-001 ->companyB salesman 1

0002-002 ->companyB salesman 2

0002-003 ->companyB salesman 3

What i have to do now is for every reseller, when i add a new salesperson, the salesperson number starts from the number of the last record.

My brain has freezed so all help would be greatly appreciated!

Pris

Version: v6.x

Platform: Windows 95/98

I can see a need for the Company ID to be the primary key in the company fiile and foreign key in the salesperson file. I would also have a SalespersonID as the primary key in the salesperson file that is just a serial number. A serial number as you propose is less reliable than the built-in auto entered serial number.

Pris:

I agree with Ralph. Use the serial number you are proposing for in-house referencing, but as far as your relationships go, use an auto-entered serial number to ensure uniqueness.

-Stanley

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.