Hi,
The syntax does not seem to be right. It seems there is an odd number of ",
it should be even. The number of parenthesis is wrong. If I make a running
count +1 for ( and -1 for ), I got:
Iif(Iserror(CDate(Mid([time1],7,5) ) ),"",CDate(Mid([time1],7,5) ) )
,"","") ")
1 2 3 4 3 2 1 2 3
2 1 0 -1 -2
which means that your iif ends with:
Iif(Iserror(CDate(Mid([time1],7,5) ) ),"",CDate(Mid([time1],7,5) ) )
and whatever comes after has to use an operator rather than coma (which
delimits arguments, but there is no function opened at that moment to get
more argument).
What you WANT to do is not clear... cannot be much of further assistance.
Please, try to tell what you WANT to do, rather than just HOW you do it.
Hoping it may help,
Vanderghast, Access MVP
Gary said:
"D:Iif(Iserror(CDate(Mid([time1],7,5))),"",CDate(Mid([time1],7,5))),"","")"
)" in a query field,
but it still show #Error, hope someone can help!
Thank!!
Gary