The Nz error doesn't surprise me, since AFAIK an MDE isn't capable of
self-correcting its references the way an MDB can. With the MDB, check what
version of each reference it's using (I've got some sample code to do this
at
http://members.rogers.com/douglas.j....nceErrors.html)
then check to ensure each reference is in the same location and the same
version where the MDE is breaking.
--
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no e-mails, please!)
"Rick Brandt" <rickbrandt2@hotmail.com> wrote in message
news:34agp9F48lgtcU1@individual.net...[color=blue]
> Just got a new PC at work (woo hoo) and I'm wondering if the way the
> various versions of Access were installed has left it in some kind of
> incorrect state.
>
> In an app I am working on I added a form to allow for generic data
> exporting. There are four ListBoxes.
>
> ListBox1 (not actual name) lists the available tables in the file.
>
> ListBox2 lists the field names of the table selected in ListBox1
>
> From all of the available fields in ListBox2 the user can select those
> that he wants to appear in ListBox3 for exporting. This is done by
> updating a temp table that is used as the RowSource for ListBox3.
>
> ListBox4 shows sample data by doing a SELECT TOP 5 query based on the
> fields in ListBox3 and the Table in ListBox1
>
> Now the problem. Working on this as an MDB it flies. I can click around
> changing tables, fields, etc., and the form updates immediately. As soon
> as I make this file into an MDE I cannot get the form to update or if it
> does it is after a prolonged pause (5 - 10 seconds).
>
> I can use Access 2000 to convert the file to 2000 file format and then run
> the 2000 MDE in 2000, 2002, and 2003 and they all behave the same sluggish
> way. I have added various Refresh, Repaint, Requery, Recalc and none of
> it makes any difference.
>
> Problem 2. Once MDE'd I also have numerous errors of "Undefined function
> 'nz' found in expression." This file has NO references beyond the Access,
> DAO, VBA ones.
>
> Access 97 is at SR2 and as far as I can tell the Jet version is the same
> as the one on my old system (have that drive installed as a slave in the
> new system).
>
> This feels like there is something wrong with my Access 97 setup and that
> problem is being propagated when I convert it to 2000, but I don't know
> what else to look for. I have been considering uninstalling all versions
> of Office and starting over, but obviously I would like to avoid that if
> possible.
>
> Everything I could find on Google for the Nz error talks about references,
> but since I'm only using the defaults that should be ruled out (shouldn't
> it?).
>
> --
> I don't check the Email account attached
> to this message. Send instead to...
> RBrandt at Hunter dot com
>
>
>[/color]