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

I have a number field in a questions and answers table that has data such as:

7.1.065

7.1.103

This means the 65th and 103rd question of unit 7.1 etc

When a candidate answers a question a record is created in another table but the data is displayed as:

7.1065

7.1103

Is there a reason why it is removing the second decimal point? I understand that a second decimal point isn't normal as such but I was hoping to keep with this format as it's meaningful to me. If I have to change the field to text I expect I won't be able to sort them numerically which works as things are now.

Because 7.1.065 is not a number. Change the field type to Text.

Or - preferably, IMHO - stick to the 'one fact per field' rule.

  • Author

Because 7.1.065 is not a number. Change the field type to Text.

This does the trick, thank you. I have to ask, will an ascending text sort be as accurate as a numerical sort taking into account my data?

Or - preferably, IMHO - stick to the 'one fact per field' rule.

Such as 7.1 and 65?

This does the trick, thank you. I have to ask, will an ascending text sort be as accurate as a numerical sort taking into account my data?

No. If you have more than 9 units, then you'll have a sorting issue as 10.1 comes before 7.1 in text. You'll have to change it to 07.1.

Such as 7.1 and 65?

You should definitely be storing the data (Unit, question, etc) in separate fields. Display is another question.

Such as 7.1 and 65?

I would guess 7 and 1 and 65 - but I am not familiar with your structure. Normally, in a hierarchy, a child needs to remember only its immediate parent; the grandparent is known through the parent, etc.

Moreover, all questions should have a unique QuestionID, regardless of their parent unit - and this is the field you want to use as the matchfield for linking to the Answers table.

  • Author

- and this is the field you want to use as the matchfield for linking to the Answers table.

Mmmm........Do I have a fundamental flaw in having the question and answer fields within the same record in the same table?

Do I have a fundamental flaw in having the question and answer fields within the same record in the same table?

Didn't you say earlier that:

When a candidate answers a question a record is created in another table

What is the other table then, if not Answers?

In any case, the real question is whether more than one person answer the same question. If the answer is yes, then you have a one-question-to-many-answers relationship - and this means two tables.

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.