Forum Discussion
MarkShnier__You
Qrew Legend
5 years agoThe syntax error is a field type mismatch. The lookup field looks like it might be a multi-select field or some kind of text field and you are trying to use it as if it was a checkbox field.
What is actually in the field you are checking against?
------------------------------
Mark Shnier (YQC)
Quick Base Solution Provider
Your Quick Base Coach
http://QuickBaseCoach.com
mark.shnier@gmail.com
------------------------------
What is actually in the field you are checking against?
------------------------------
Mark Shnier (YQC)
Quick Base Solution Provider
Your Quick Base Coach
http://QuickBaseCoach.com
mark.shnier@gmail.com
------------------------------
- MeganHardison5 years agoQrew MemberHi Mark,
Thanks for getting back to me. :-)
The [Not Available] field is a lookup field. Its looking at a field in another table that's a summary field showing when the item is being used. I just want to say that if there's something in that field, I want the user to double check that its not being used during the dates they want it.
Do you know if there's another way to do it?
Thanks so much for your help!
------------------------------
Megan Hardison
------------------------------- BradLemke5 years agoQrew Assistant CaptainSee if this works for you:
If (
[Not available] = "",
"",
"Please check that your items are available during your event dates. Thank you!"
)
------------------------------
Brad Lemke
------------------------------- MarkShnier__You5 years ago
Qrew Legend
If Brad's suggestion does not work, try this
See if this works for you:
If (
ToText([Not available]) = "",
"",
"Please check that your items are available during your event dates. Thank you!"
)
------------------------------
Mark Shnier (YQC)
Quick Base Solution Provider
Your Quick Base Coach
http://QuickBaseCoach.com
mark.shnier@gmail.com
------------------------------
- MeganHardison5 years agoQrew MemberGot an error on both. Here's what they said below. Any other ideas? Thanks so much to you both for helping me!
The first error: Formula Error -- Type Mismatch
The expression [Not Available] on the left hand side of the operator "=" is of type textlist while the expression "" on the right hand side is of type text. The operator "=" cannot be used with these types of expressions.
You may need to do one of the following to fix the problem:- Add a type conversion function.
- Choose a different operator.
The function name IIf(bool, text, text) is unknown.
------------------------------
Megan Hardison
------------------------------- MarkShnier__You5 years ago
Qrew Legend
In the second version, remove the extra I in IIF in the IF. s/b IF not IIF.
------------------------------
Mark Shnier (YQC)
Quick Base Solution Provider
Your Quick Base Coach
http://QuickBaseCoach.com
mark.shnier@gmail.com
------------------------------- MeganHardison5 years agoQrew MemberOh shoot. Sorry!
Now it works, but once the error comes up and they check it and the dates are okay, how do they save? It wont let me save.
------------------------------
Megan Hardison
------------------------------
- MeganHardison5 years agoQrew MemberOkay got it. I'll do that. Thanks for your help!
------------------------------
Megan Hardison
------------------------------