Good morning all,
I am trying to import data into Excel from an Access query. When I try to add the query via the Microsoft Query manager in Excel, I receive the following error “Undefined function ‘NZ’ in expression”. I know what is causing the error, but I don’t know why.
I built the query in Access, and it joins multiple tables, and the problem was that one of the tables, which is being pulled from SQL Server via an ODBC hook, has the employees’ ID listed as text instead of a number, so when I joined the tables I used the below syntax to change the data from text to an integer; you can see my other posting relating to this at https://www.experts-exchange.com/Microsoft/Development/MS_Access/Q_22136592.html
My join statement:
tbl_OrgMaster_2.BemsID = CLng(NZ(ENGPI_dbo_tbl_proc
What’s weird is that I am not even trying to pull data directly from the query that contains the above join syntax “qry_DocumentMaster”, as I am pulling from another query “qryDIMaster” that pulls from the aforementioned query.
So, my question is, can I work around this, or will I have to do something like make an update table query, and then run it every time I want new data to be available in Excel?
Thanks in advance for your help, Jon