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

Hi...

 

Brief history. I used to be very proficient in FM... built databases is V9 in about 2010. Now I am rebuilding all my databases and making them more proficient in V13 for 2015. Yes, they rocked for 5 years!

 

Anyway, need help with a simple code. It is slowly coming back to me...

 

Case (DayName ( SOME DATE ) = 

 
"Monday" ; "MON";
"Tuesday" ;"TUE";
"Wednesday" ; "WED";
"Thursday" ; "THUR";
"Friday" ; "FRI";
"Saturday" ; "SAT";
"Sunday" ; "SUN"
 
; "HELP")
 
I constantly am returned "HELP". 
 
What am I missing??
 
My goal was to abbreviate Day of the week, and Months etc to get them to fit in a small amount of space.
 
 
 
Thanks!!
I constantly am returned "HELP".

 

No, not exactly. If SOME DATE is a Monday, you will get "MON" as the result. All other cases will return false because your syntax is incorrect. Going by your method, it needs to be =

Case (
DayName ( StartDate ) = "Monday" ; "MON";
DayName ( StartDate ) = "Tuesday" ;"TUE";
DayName ( StartDate ) = "Wednesday" ; "WED";
DayName ( StartDate ) = "Thursday" ; "THUR";
DayName ( StartDate ) = "Friday" ; "FRI";
DayName ( StartDate ) = "Saturday" ; "SAT";
DayName ( StartDate ) = "Sunday" ; "SUN";
"HELP")

Of course a simpler method exists, e.g. =

 Upper ( Left ( DayName ( StartDate ) ; 3 ) )

(do you really need an exception for Thursday?)

  • Author

Funny enough... I solved my problem and figured out my "syntax" error, however your simpler method is freeking genius!! I just never thought about it being as simple as it actually was!

 

SUPER MANY THANKS & HAPPY NEW YEAR!!!

 

Yes... "THUR" can be "THU"

 

BRILLIANT! Thanks for the wake up call!


No more responses needed.... problem solved!

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.