Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

"The ) is missing" is driving me nuts

Status
Not open for further replies.

Rich24

MIS
Oct 5, 2002
52
0
0
US
I keep getting the "The ) is missing" error message with the following formula:

{mhserv.sercod} = "IS024" and
((not isnull {mhprognew.opendat1}) and
(isnull {mhprognew.closedat1})) or
((not isnull {mhprognew.opendat2}) and
(isnull {mhprognew.closedat2})) or
((not isnull {mhprognew.opendat3}) and
(isnull {mhprognew.closedat3}))

I probably went overboard the parenthesis', but the number of opening and closing parenthesis do match. What I'm trying to find is any client with an opening date and no closing date. Is my problem somewhere in that logic?

Thanks, Rich
 
For one thing, you have no open paren after "is null" in each line. Try:

{mhserv.sercod} = "IS024" and
(
(
not isnull ({mhprognew.opendat1}) and
isnull ({mhprognew.closedat1})
) or
(
not isnull ({mhprognew.opendat2}) and
isnull ({mhprognew.closedat2})
) or
(
not isnull ({mhprognew.opendat3}) and
isnull ({mhprognew.closedat3})
)
)

-LB
 
LB,

That did the trick. Thank you very much!

Rich
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top