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.

Case Statement for a blank Field

Featured Replies

So I have some fields in my table that are blank, and am trying to write a case statement that would replace the blank field with a value of "Null".

Is the case statement the best way to do this?

Why?

Assuming that the Field is a Text field, and not an number, date, or Calculation, I would use the Menu Replace Function.

If this is a calculation Field that you want to default to Null, then stop here, and let us know.

Otherwise;

First isolate the records to be changed.

Enter Find Mode

Type = in the field that you want to change (the equal sign = will find records with where that field is blank)

Next, Put the cursor in the field to be change and type in Null

Next;

Go to Menu >> Format >> Replace

Click on Replace

All the records in the found set should now contain the word Null in the field.

HTH

  • Author

Thank you for the response. I have grades coming in on a sql query. Some grades have the actual grade field empty. I need to put the value of "Null" in there so my other calculation fields will execute correctly. I would prefer the end user not attempt a find and replace.

I would then use a Auto Enter by Calculation on the field

Something like;

Highlight the field in Define Fields, and click on the options. Click on the Auto Enter Tab (should already be there as the default)

Click on the "Calculated Value"

Enter "Null"

Click Okay,

Deselect the checkbox

"Do not replace existing value of Field (if Any)"

Click Okay.

New Record should now have Null in that field. If you are importing this data, you will want to click the option to Perform the Auto Enter Options while importing.

HTH

Lee

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.