Forum Discussion
QuickBaseCoachD
8 years agoQrew Captain
The IsNull function is documented not to work with Text Realty. To test of a text field is blank then use the syntax here
If(Trim([my text field])="", This field is blank")
Ie you have to test against = empty quotes.
If(Trim([my text field])="", This field is blank")
Ie you have to test against = empty quotes.
- AdamTanner8 years agoQrew TraineeI do not want to test if the field is blank. I want to label a record as either, Oracle, Payment, or Rapid hold in a summary report if a certain field has text in it. Does that make sense?
- QuickBaseCoachD8 years agoQrew CaptainIn other words uf the field is not blank, then you want to do something. So you do, in fact, need a way to test if a field is blank.
- QuickBaseCoachD8 years agoQrew CaptainTry this
If(
[AP Supplier Type])<>"", "Oracle Hold",
[CURRENTWORKNODE]<>"", "Rapid Hold",
[Amt])<>"", "Payment Hold")
Note that unlike Excel, you do not need to nest your IF statements. - AdamTanner8 years agoQrew TraineeThank you for your help! It is coming back with a syntax error.
- QuickBaseCoachD8 years agoQrew CaptainThere was an extra bracket after AMT
Try this
If(
[AP Supplier Type])<>"", "Oracle Hold",
[CURRENTWORKNODE]<>"", "Rapid Hold",
[Amt]<>"", "Payment Hold - AdamTanner8 years agoQrew TraineeIt is coming up with the same error message :(
- QuickBaseCoachD8 years agoQrew CaptainSorry, there were more extra brackets.
There was an extra bracket after AMT
Try this
If(
[AP Supplier Type]<>"", "Oracle Hold",
[CURRENTWORKNODE]<>"", "Rapid Hold",
[Amt]<>"", "Payment Hold")
I'm actually sitting in a tent now on vacation and it's hard to see on my iPad :) - AdamTanner8 years agoQrew TraineeGot it! The error was coming from [AP Supplier Type]) <-----
- AdamTanner8 years agoQrew TraineeIt worked beautifully. Thanks so much!
- MattHanamoto5 years agoQrew MemberFor future reference, if someone is trying to do this with a User type field, simply convert that user field to text and then use the syntax that the QuickBase coach provided.
Ex. ToText([UserField])<>""
- This can be embedded into the if statement to utilize the if(condition), then "value", else "other value" logic.
------------------------------
Matt Hanamoto
------------------------------- MarkShnier__You5 years ago
Qrew Legend
On a User field type you can also do
IF(IsNull[my user field]), then do this.......)
------------------------------
Mark Shnier (YQC)
Quick Base Solution Provider
Your Quick Base Coach
http://QuickBaseCoach.com
mark.shnier@gmail.com
------------------------------