Thanks for the reply.
Creating the function in Excel still results in an undefined function error.
I know i can change this using a simple iif statement but the select qry is calling other queries also using Nz(). This means i would have to go back and change Nz everywhere to an iif statement. Very cumbersome.
Even tried making a table by just executing the qry in access and not returning data to excel and then qry the table, but using querydefs("").execute also result in an error.
Any ideas helpfull.
Thanks again
Bookmarks