I removed some quotes that shouldn't be there. Then added parenthesis. (I could have left in > 0 as that's not wrong, but removed it to keep the expression as simple as possible.)
( Tasks 2::Date_Start ≥ Tasks::g_StartDateandTasks 2::Date_Start ≤ Tasks::g_FinishDate )and
( PatternCount(Tasks 2::Name ; Tasks::g_Name )
Tasks::g_Name = "" )
I totally overlooked the use of parenthesis in order of operations. There is one extra closing parenthesis on the second to last item. Slight edit and this works perfectly:
What I posted was correct. What you posted is incorrect. You need: PatternCount(Tasks 2::Name ; Tasks::g_Name )
here or you are doing a pattern count against the values 1 (True) or 0 (False) instead of the text in g_Name.
First off, thank you so much for your help. This is what I did:
I first type the expression you posted exactly how it was written. Filemaker gave an error when I pressed ok. I looked more closely and noticed there are 2 "(" and 3 ")". When I removed the second ")", the expression was accepted and appears to work. Here is the original expression, before I edited it:
You are absolutely correct. I entered the expression wrong. Thank you for your patience.