473,503 Members | 1,638 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Help! Getting Error Code 40230 in Access XP when making an mde.

RWC
Hello,

I'm having a problem that I'm having a lot of trouble with. I'm running
Access XP, with all the updates, including service pack 2. I'm on a Windows
XP machine. I have a database which I'm trying to make into an MDE, and for
every module I have, I get a Microsoft Visual Basic error "Unexpected Error"
(40230). I've tried decompiling, but that doesn't seem to work. Any ideas
would be greatly appreciated. If you are replying to this post, please
remove the caps and underscores from my email address.

Thanks!
RWC
Nov 12 '05 #1
10 4232
If a compact/repair (Tools | Database Utilites) doesn't work, and a
decompile (command line switch) doesn't work, the next step would be to
create a new (blank) database and import all the objects.

Make sure the new database is in Access 2002 format: you will not be able to
generate an MDE from A2000 format.

Before importing your objects into the new database, turn off the Name
AutoCorrect boxes under Tools | Options | General.

After importing, open a code window.
Remove any references you don't need. If you are not sure which ones you
need, see:
http://allenbrowne.com/ser-38.html
Then verify that the database compiles correctly. (From a code window: Debug
| Compile). We saw one last week where the compile error showed up only
after the spurious references were removed.

You should now be able to generate the MDE.

--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"RWC" <he*****************************@shaw.ca> wrote in message
news:AelIb.869588$pl3.851508@pd7tw3no...
Hello,

I'm having a problem that I'm having a lot of trouble with. I'm running
Access XP, with all the updates, including service pack 2. I'm on a Windows XP machine. I have a database which I'm trying to make into an MDE, and for every module I have, I get a Microsoft Visual Basic error "Unexpected Error" (40230). I've tried decompiling, but that doesn't seem to work. Any ideas would be greatly appreciated. If you are replying to this post, please
remove the caps and underscores from my email address.

Nov 12 '05 #2
"Allen Browne" <Al*********@SeeSig.Invalid> wrote in
news:3f**********************@freenews.iinet.net.a u:
Make sure the new database is in Access 2002 format: you will not be
able to generate an MDE from A2000 format.


This can be done with code, but the MDE will run only on machines on which
Access2002 has been installed.

--
Lyle
(for e-mail refer to http://ffdba.com/contacts.htm)
Nov 12 '05 #3
Mi************@Invalid.Com (Lyle Fairfield) wrote in
<Xn*******************@130.133.1.4>:
"Allen Browne" <Al*********@SeeSig.Invalid> wrote in
news:3f**********************@freenews.iinet.net. au:
Make sure the new database is in Access 2002 format: you will
not be able to generate an MDE from A2000 format.


This can be done with code, but the MDE will run only on machines
on which Access2002 has been installed.


By "this" do you mean generating an A2K MDE with A2K2?

And if so, do you mean that an A2K MDE generated by A2K2 is not
really an A2K MDE, that it won't run in A2K?

Assuming I've interpreted correctly, does this mean that:

1. if you're distributing MDEs to a user base with both A2K and
A2K2, you must compile different MDEs for each user base using the
target version of Access, even though your MDB is A2K format and
would run without difficulty on either version.

2. the A2K compatibility of A2K2 does not extend in any fashion to
MDEs.

I can understand why 2) would be the case -- it would certainly be
consistent with earlier versions of Access and MDEs.

This leads me to a 3rd issue, in the form of a question:

3. does an A2K MDE generated from A2K run in A2K2?

--
David W. Fenton http://www.bway.net/~dfenton
dfenton at bway dot net http://www.bway.net/~dfassoc
Nov 12 '05 #4
dX********@bway.net.invalid (David W. Fenton) wrote in
news:94***************************@24.168.128.78:
Mi************@Invalid.Com (Lyle Fairfield) wrote in
<Xn*******************@130.133.1.4>:
"Allen Browne" <Al*********@SeeSig.Invalid> wrote in
news:3f**********************@freenews.iinet.net .au:
Make sure the new database is in Access 2002 format: you will
not be able to generate an MDE from A2000 format.
This can be done with code, but the MDE will run only on machines
on which Access2002 has been installed.


By "this" do you mean generating an A2K MDE with A2K2?


I mean an ACXP db in AC2K ffile formet.
And if so, do you mean that an A2K MDE generated by A2K2 is not
really an A2K MDE, that it won't run in A2K?
It will run in AC2k (I think) if ACXP is installed on the machine.
Assuming I've interpreted correctly, does this mean that:

1. if you're distributing MDEs to a user base with both A2K and
A2K2, you must compile different MDEs for each user base using the
target version of Access, even though your MDB is A2K format and
would run without difficulty on either version.
Yes.

2. the A2K compatibility of A2K2 does not extend in any fashion to
MDEs.
Sure, you can run these MDEs in ACXP.
3. does an A2K MDE generated from A2K run in A2K2?


Never tried.

--
Lyle
(for e-mail refer to http://ffdba.com/contacts.htm)
Nov 12 '05 #5
"Lyle Fairfield" <Mi************@Invalid.Com> wrote...
1. if you're distributing MDEs to a user base with both A2K and
A2K2, you must compile different MDEs for each user base using the
target version of Access, even though your MDB is A2K format and
would run without difficulty on either version.
Yes.


This is not actually true. I have made all of my add-ins into MDEs in Access
2000 yet they run fine in both Access 2000 and Access 2002.
2. the A2K compatibility of A2K2 does not extend in any fashion to
MDEs.


Sure, you can run these MDEs in ACXP.


Hmmm.... it is the Access 2000 project format and it works perfectly. So it
IS compatible.
3. does an A2K MDE generated from A2K run in A2K2?


Never tried.


I have (see above) and it works just fine.
--
MichKa [MS]
NLS Collation/Locale/Keyboard Development
Globalization Infrastructure and Font Technologies

This posting is provided "AS IS" with
no warranties, and confers no rights.

Nov 12 '05 #6
1. if you're distributing MDEs to a user base with both A2K and
A2K2, you must compile different MDEs for each user base using the
target version of Access, even though your MDB is A2K format and
would run without difficulty on either version.


Yes.


For a user base with both A2k-users and A2k2 (Access XP)-users you only need *one* mde.
This must be a A2k-mde in this case. Works allright with Access XP.

Both A2k-mdb's AND A2k-mde's work in Access XP.
******************************************

I recently had a case where a A2k-mde would NOT run in Access XP but this turned out
to be a (difficult to find) corruption-issue .

--
Hope this helps
Arno R

Nov 12 '05 #7
ar****************@tiscali.nl (Arno R) wrote in
<3f**********************@dreader2.news.tiscali.nl >:
> 1. if you're distributing MDEs to a user base with both A2K
> and A2K2, you must compile different MDEs for each user base
> using the target version of Access, even though your MDB is
> A2K format and would run without difficulty on either version.


Yes.


For a user base with both A2k-users and A2k2 (Access XP)-users you
only need *one* mde. This must be a A2k-mde in this case. Works
allright with Access XP.

Both A2k-mdb's AND A2k-mde's work in Access XP.
******************************************

I recently had a case where a A2k-mde would NOT run in Access XP
but this turned out to be a (difficult to find) corruption-issue .


Does it matter if you create the MDE in A2K or A2K2 (using A2K
format)?

That is, an A2K-created MDE will run in A2K2, but will an A2K MDE
created by A2K2 run in A2K?

--
David W. Fenton http://www.bway.net/~dfenton
dfenton at bway dot net http://www.bway.net/~dfassoc
Nov 12 '05 #8
David,
As far as I know you can not create a A2k-mde in Access XP.
You can use A2K format but then you can't create mde's, Right?

I can only confirm from own experience what I stated about A2k-mde running in A2k2 .

Arno R
"David W. Fenton" <dX********@bway.net.invalid> schreef in bericht
news:94***************************@24.168.128.78.. .
ar****************@tiscali.nl (Arno R) wrote in
<3f**********************@dreader2.news.tiscali.nl >:
> 1. if you're distributing MDEs to a user base with both A2K
> and A2K2, you must compile different MDEs for each user base
> using the target version of Access, even though your MDB is
> A2K format and would run without difficulty on either version.

Yes.


For a user base with both A2k-users and A2k2 (Access XP)-users you
only need *one* mde. This must be a A2k-mde in this case. Works
allright with Access XP.

Both A2k-mdb's AND A2k-mde's work in Access XP.
******************************************

I recently had a case where a A2k-mde would NOT run in Access XP
but this turned out to be a (difficult to find) corruption-issue .


Does it matter if you create the MDE in A2K or A2K2 (using A2K
format)?

That is, an A2K-created MDE will run in A2K2, but will an A2K MDE
created by A2K2 run in A2K?

--
David W. Fenton http://www.bway.net/~dfenton
dfenton at bway dot net http://www.bway.net/~dfassoc


Nov 12 '05 #9
"David W. Fenton" <dX********@bway.net.invalid> wrote...
Does it matter if you create the MDE in A2K or A2K2 (using A2K
format)?
You cannot create an MDE in Access 2002 of a db in Access 2000 format.
That is, an A2K-created MDE will run in A2K2, but will an A2K MDE
created by A2K2 run in A2K?


The former will, but the latter is not possible.
--
MichKa [MS]
NLS Collation/Locale/Keyboard Development
Globalization Infrastructure and Font Technologies

This posting is provided "AS IS" with
no warranties, and confers no rights.

Nov 12 '05 #10
"Arno R" <ar****************@tiscali.nl> wrote in
news:3f**********************@dreader2.news.tiscal i.nl:
David,
As far as I know you can not create a A2k-mde in Access XP.
You can use A2K format but then you can't create mde's, Right?


Public Sub CreateADE(ByVal ADPFullPath As String)
Dim a As Access.Application
Set a = New Access.Application
a.SysCmd 603, ADPFullPath, Replace(ADPFullPath, ".adp", ".ade")
Set a = Nothing
End Sub

Just do the adp->mdb and ade->mde mapping.

--
Lyle
(for e-mail refer to http://ffdba.com/contacts.htm)
Nov 12 '05 #11

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

Similar topics

21
6486
by: Dave | last post by:
After following Microsofts admonition to reformat my system before doing a final compilation of my app I got many warnings/errors upon compiling an rtf file created in word. I used the Help...
9
4375
by: Tom | last post by:
A question for gui application programmers. . . I 've got some GUI programs, written in Python/wxPython, and I've got a help button and a help menu item. Also, I've got a compiled file made with...
4
3322
by: Sarir Khamsi | last post by:
Is there a way to get help the way you get it from the Python interpreter (eg, 'help(dir)' gives help on the 'dir' command) in the module cmd.Cmd? I know how to add commands and help text to...
2
6374
by: Sudheer Kareem | last post by:
Dear All Please tell me how to assosiate help files with my Vb.net Project. Regards Sudheer
6
2984
by: d.warnermurray | last post by:
I am doing a project for school that involves creating help files for a html authoring tool. If you could help me with answers to some questions it would really help. 1. What tasks do you expect...
3
2425
by: stuart_white_ | last post by:
I've just upgraded from Python 2.3.3 to Python 2.4.2, and, although the new version of Python seems to be running correctly, I can't seem access the help from the interpreter. On Python 2.3.3...
9
2234
by: JJ | last post by:
Do you all use HTML help workshop to create your help system. I am finding it quite clumsy to use. Mayeb because I am not used to using it. Do any of you use any other techniques to create help...
1
1368
by: JJ | last post by:
Ok I have now got to grips with HTML help workshop and created my help files, TOC etc. Now how do I integrate this with my application? I have added an errorprovider to my form and pointed it to...
4
2238
by: Fred Flintstone | last post by:
This one baffles me. I'm using VS.Net 2005 and write desktop apps that need built in help. So logically, I figure maybe VS has a help system component built in so I search the help. Hey! ...
1
6112
by: trunxnirvana007 | last post by:
'UPGRADE_WARNING: Array has a new behavior. Click for more: 'ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?keyword="9B7D5ADD-D8FE-4819-A36C-6DEDAF088CC7"' 'UPGRADE_WARNING: Couldn't resolve...
0
7202
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
7086
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
7332
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...
1
6991
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...
1
5014
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3167
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3154
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1512
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
736
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.