473,406 Members | 2,369 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

File Turns to Crap if Converted to MDE

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

Nov 13 '05 #1
8 1464
In news:34*************@individual.net,
Rick Brandt typed:
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?).


Acc 2000 to Acc XP use ADO as default. You have to add the
DAO ref. Acc 2003 the DAO ref is back again.

Check your ref's.

http://www.alphacos.co.uk/html/msaccess_tips.htm

download refcheck.zip

--
Nick Coe (UK)
AccHelp v1.01 Access Application Help File Builder
http://www.alphacos.co.uk/
Download Free Copy
----
Nov 13 '05 #2
Nick Coe (UK) wrote:
In news:34*************@individual.net,
Rick Brandt typed:
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> Acc 2000 to Acc XP use ADO as default. You have to
add the

DAO ref. Acc 2003 the DAO ref is back again.

Check your ref's.


That does not apply to a *converted* file as the DAO reference is retained from
the older version after converting. Also the problems exist in Access 97 as
well as the newer ones.
--
I don't check the Email account attached
to this message. Send instead to...
RBrandt at Hunter dot com
Nov 13 '05 #3
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" <ri*********@hotmail.com> wrote in message
news:34*************@individual.net...
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

Nov 13 '05 #4
> 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.
I wouuld also make sure you have all the office service packs installed for
a2000. Office 2000 was perhaps one of the most buggy versions ever
releiased. If you install all the bug fixes (services packs), then you will
find it is stable.
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.


I assume that the access 97 databases compiles correctly BEFORE you try and
convert it to a2000

Try the de-compile idea. In fact, before you try the de-compile idea, I
would also try creating a blank database in a2000, and then importing
everything from the problem database. That also should fix this...
--
Albert D. Kallal (Access MVP)
Edmonton, Alberta Canada
pl*****************@msn.com
http://www.attcanada.net/~kallal.msn
Nov 13 '05 #5
Douglas J. Steele wrote:
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.


Yes, but the MDE breaks on the same PC as the MDB which works fine.

Is it possible that 4 ListBoxes on one form is just some sort of resource
problem?

--
I don't check the Email account attached
to this message. Send instead to...
RBrandt at Hunter dot com
Nov 13 '05 #6
Albert D. Kallal wrote:
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.


I wouuld also make sure you have all the office service packs
installed for a2000. Office 2000 was perhaps one of the most buggy
versions ever releiased. If you install all the bug fixes (services
packs), then you will find it is stable.


Except the problem also occurs in Access 97 (but only in the MDE).

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.


I assume that the access 97 databases compiles correctly BEFORE you
try and convert it to a2000

Try the de-compile idea. In fact, before you try the de-compile idea,
I would also try creating a blank database in a2000, and then
importing everything from the problem database. That also should fix
this...


I've tried both. The only thing I can still try is to do the SaveAsText,
LoadFromText for every object to see if that makes any difference.

--
I don't check the Email account attached
to this message. Send instead to...
RBrandt at Hunter dot com
Nov 13 '05 #7
"Rick Brandt" <ri*********@hotmail.com> wrote in message
news:34*************@individual.net...

Except the problem also occurs in Access 97 (but only in the MDE).
Hum, I miss read that! Sorry!

Try the de-compile idea. In fact, before you try the de-compile idea,
I would also try creating a blank database in a2000, and then
importing everything from the problem database. That also should fix
this...


I've tried both. The only thing I can still try is to do the SaveAsText,
LoadFromText for every object to see if that makes any difference.


Gee, that is not fun. As mentioned, I am currently working on a a2000
database, but I use a2003 to work on this application (I don't convert it).

When I take this application, and put on a a2000 pc, and make the mde, it is
FULL of problems (combobox, listboxes etc have all kinds of problems, and
don't even plot). If I decompile, exit, re-enter..ctrl-g, compile database,
then ALL OF my problems go away.

Anyway, you are talking about a97 here...so:

You might also install jet35sp3.exe on the computer for access97 (I seen
that cause problems also). So, you install:

sr1
sr2b
jet35sp3.exe

--
Albert D. Kallal (Access MVP)
Edmonton, Alberta Canada
pl*****************@msn.com
http://www.attcanada.net/~kallal.msn
Nov 13 '05 #8
Original issues:

1) One form seemed to perform much worse after MDE conversion.
2) Numerous "Undefined function 'nz'" errors after MDE conversion.

The file was created in A97, but the above was also true in A2000 file run
under A2K, A2K2, and A2K3.

Further experimenting determined that it was not after conversion to an MDE,
but rather any time the file was opened without holding the shift key.

Process of elimination determined that the key event was the execution of a
sub that is used to remove an index from one of the tables in the external
data file. This sub was creating a new Workspace object to execute this
process in. Modifying the code so that it used the default workspace solved
the problem.

Experimenting further determined that all I needed to produce the problem
was code that created a new Workspace object and then destroyed it. I
didn't have to do anything else. Further I could take this sub out of the
startup sequence and instead run it after the app had completed opening and
it caused no problems.

The offending line of code was...

Set WrkJet = CreateWorkspace("", "admin", "", dbUseJet)

....which I believe was lifted directly from the sample code in the help
file.

Ah well, just 3 days of my life I won't get back :-(

--
I don't check the Email account attached
to this message. Send instead to...
RBrandt at Hunter dot com
Nov 13 '05 #9

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
by: Hans-Joachim Widmaier | last post by:
Hi all. Handling files is an extremely frequent task in programming, so most programming languages have an abstraction of the basic files offered by the underlying operating system. This is...
7
by: Tony | last post by:
Hi there, Is there any event you can catch that would you allow to cancel the deletion of a file or directory. The FileSystemEventHandler allows you to catch file operations after they have...
6
by: Siddharth Taneja | last post by:
Hi, I have a very simple prg over here, trying to read the lines of a file #include <iostream> #include <fstream> #include <iostream> #include <string> using namespace std;
10
by: MLH | last post by:
I print to a device that creates a PDF. Knowing the filename, how can I then embed the PDF into the body text of an OutLook Express outbound email & send to a specified address in a table? I want...
5
by: Sky | last post by:
What makes something a valid DataSource? What methods/iterators/etc? Why do I ask? I do understand that a DataSet is based on an XML structure...but it's too table structured for what I am...
5
by: Sakharam Phapale | last post by:
Hi All, I am using an API function, which takes file path as an input. When file path contains special characters (@,#,$,%,&,^, etc), API function gives an error as "Unable to open input file"....
1
by: laredotornado | last post by:
Hi, I'm using PHP 4.4.4 on Apache 2 on Fedora Core 5. PHP was installed using Apache's apxs and the php library was installed to /usr/local/php. However, when I set my "error_reporting"...
25
by: Subra | last post by:
Hi, What is the best way to find the 1000 largest numbers from the file having hell lot of entries ? Can you please help me to find out the way ? Do I need to go for B+ trees ?? Please help,...
10
by: michael | last post by:
Hi All, I have the following: ------------ file constants.h--------- #ifndef constants_ #define constants_ const int FOO = 1; const int BAR = 2;
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.