473,386 Members | 1,721 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,386 software developers and data experts.

AutoExec RunCode "Action Failed"

Hello,

I've custom-built a fairly extensive object model that is designed to
run in the background
and control the opening and closing of related forms. The whole thing
kicks-off with an
AutoExec macro at startup, using a RunCode action that calls a global
function and the
rest works great. Pretty good stuff - flies like an eagle, when it
works.

Here's were the ugliness starts. Sometimes it works great. Sometimes
it works great
but the macro throws an error, even though my code completes.
Sometimes my code
just breaks into debug mode for no reason. Sometimes the .mdb
crashes. Sometimes
the Access application blows-up (and I get to choose whether or not to
advise Microsoft -
love that part). There is no apparent reason or predictability to any
of it.

I've looked pretty closely at DB corruption and memory leaks. I've
tested the code for
weeks now. My code is pretty sound. Step-through ALWAYS works fine -
no errors.

Does anybody have any suggestions on the cause of the apparent macro
failure?

Thanks in advance for your ideas!

Sincerely,

Tom
Nov 13 '05 #1
7 9416

"Tom Chidwick" <tc*********@comcast.net> wrote in message
news:a5**************************@posting.google.c om...
Hello,

I've custom-built a fairly extensive object model that is designed to
run in the background
and control the opening and closing of related forms. The whole thing
kicks-off with an
AutoExec macro at startup, using a RunCode action that calls a global
function and the
rest works great. Pretty good stuff - flies like an eagle, when it
works.

Here's were the ugliness starts. Sometimes it works great. Sometimes
it works great
but the macro throws an error, even though my code completes.
Sometimes my code
just breaks into debug mode for no reason. Sometimes the .mdb
crashes. Sometimes
the Access application blows-up (and I get to choose whether or not to
advise Microsoft -
love that part). There is no apparent reason or predictability to any
of it.

I've looked pretty closely at DB corruption and memory leaks. I've
tested the code for
weeks now. My code is pretty sound. Step-through ALWAYS works fine -
no errors.

Does anybody have any suggestions on the cause of the apparent macro
failure?

Thanks in advance for your ideas!

Sincerely,

Tom

is a flying fucked eagle if you ask for me. american joke yes?

you try now no marco please. load global function from startup form ok?

*Sherwood Wang MVP*


Nov 13 '05 #2
Hi Tom,

It sounds like it could be VB Project corruption. First, try a decompile.

To decompile an Access project

1. Back up your MDB file.
2. Rename your AutoExec macro, so it won't run on startup.
3. Locate your copy of MSAccess.exe, and make a shortcut to it.
4. Edit the shourtcut, and add " /Decompile" to the end of the command line.
5. Drag your mdb file to the shortcut.
6. Repair and Compact the database.
7. Go to the code editor, compile the code, and save it.

This fixes VB project corruption about 85% of the time. For the other 15
percent of the time, you have to import all the objects into a new database
(not including code modules), then copy and paste the text from the old
project's code modules into the modules in the new project. To delete modules
from forms and reports (in a copy - not your original) before importing into
the new copy for repair, edit each form/report, and change the Has Module
property to "No".
On 18 Sep 2004 23:24:45 -0700, tc*********@comcast.net (Tom Chidwick) wrote:
Hello,

I've custom-built a fairly extensive object model that is designed to
run in the background
and control the opening and closing of related forms. The whole thing
kicks-off with an
AutoExec macro at startup, using a RunCode action that calls a global
function and the
rest works great. Pretty good stuff - flies like an eagle, when it
works.

Here's were the ugliness starts. Sometimes it works great. Sometimes
it works great
but the macro throws an error, even though my code completes.
Sometimes my code
just breaks into debug mode for no reason. Sometimes the .mdb
crashes. Sometimes
the Access application blows-up (and I get to choose whether or not to
advise Microsoft -
love that part). There is no apparent reason or predictability to any
of it.

I've looked pretty closely at DB corruption and memory leaks. I've
tested the code for
weeks now. My code is pretty sound. Step-through ALWAYS works fine -
no errors.

Does anybody have any suggestions on the cause of the apparent macro
failure?

Thanks in advance for your ideas!

Sincerely,

Tom


Nov 13 '05 #3
Hi Steve!

I've tried all that, several times. I'll do it again though - we'll see
what happens. Thanks for the reply. Funny we should meet here!

Tom

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 13 '05 #4
Mr. Wang,

I'm not even going to tell you what I think of your comment. You don't
do anybody any help but saying such things.

A startup form is outside the design specifications for my project. The
AutoExec macro is the only macro I'm using, and should work properly.

Please do me a favor, and don't bother helping me anymore.

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 13 '05 #5
There is a troll here who is impersonating Sherwood Wang, and being very
obnoxious. In fact, any post here this obnoxious is probably not from the
person it claims to be from.

On 19 Sep 2004 11:10:55 GMT, Thomas Chidwick <tc*********@comcast.net> wrote:
Mr. Wang,

I'm not even going to tell you what I think of your comment. You don't
do anybody any help but saying such things.

A startup form is outside the design specifications for my project. The
AutoExec macro is the only macro I'm using, and should work properly.

Please do me a favor, and don't bother helping me anymore.

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!


Nov 13 '05 #6
On 19 Sep 2004 11:10:54 GMT, Thomas Chidwick <tc*********@comcast.net> wrote:
Hi Steve!

I've tried all that, several times. I'll do it again though - we'll see
what happens. Thanks for the reply. Funny we should meet here!

Tom

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!


Well, beyond that, it would be helpful if you can identify where it is in the
code when the crash occurs. One trick I've done to help with that is write to
a log file at random points in the code. Adter it crashes, check the log, and
add more log writes at point in the code after the last write, etc., until you
get down to the precise point of the problem.

It's a nasty thing to have to do, but when Access is crashing, I haven't sound
another way to track down where it's happening.

The last time it happened to me, and it wasn't corruption, it was because I
called a function from within a query that made a DAO call, and failed to
correctly close object references, and set them to Nothing.

Oh yeah, also make sure that any object you get a reference to by anything
other than directly creating or opening it, you only set to Nothing, and don't
Close. For instance, after you use CurrentDb to get a reference to a Database
instance, don't close that. Results can be unpredictable.
Nov 13 '05 #7

"Thomas Chidwick" <tc*********@comcast.net> wrote in message
news:41**********************@news.newsgroups.ws.. .
Mr. Wang,

I'm not even going to tell you what I think of your comment. You don't
do anybody any help but saying such things.

A startup form is outside the design specifications for my project. The
AutoExec macro is the only macro I'm using, and should work properly.

Please do me a favor, and don't bother helping me anymore.


so sorry you not humorous today! but you have flying eagle problem not me
yes?

ok starup form is good design for pros. pros not use macro never. pros no
macro error always fatal 2. you not pro so get crash all time true? is
some eagle you write fake boy!

*Sherwood Wang MVP*


Nov 13 '05 #8

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

Similar topics

2
by: Sylvie Stone | last post by:
Hi group - I have an html form for that uses username and password to login to a specific area of the website. The "area" the user wants to go to is based on a pull down menu. Becasue the...
1
by: New MSSQL DBA | last post by:
hi all, have anyone else met with the following problem. we've got a SQL2000SP3a on a 2 active-active node clusters of W2K3, this cluster in using AD. I've found that whenever I use Enterprise...
2
by: Don | last post by:
Can someone tell me what I'm doing wrong here. I can't believe I'm having this kind of problem. Think maybe I've been working on this for too long, and everything is starting to look the same. ...
1
by: tnhoe | last post by:
Hi, <Form method='post' action="next.htm?btn="+"this.myform.myobj.value"> What is the correct syntax for above ? Regards Hoe
0
by: Joeyej | last post by:
Hi - I'm trying to move/use a web form (containing some javascript field checks) previously hosted on a Windows 2000 server. However, the FORM METHOD="post..." command in the form (shown below)...
2
by: Ravi J | last post by:
I am trying to load Microsoft Word and create a document in ASP.NET (C#). But the call to application creation 'Word._Application app = new Word.ApplicationClass();' takes quit a bit of time, and...
1
by: Jonas Auken | last post by:
hi, I have a repeater which dynamically loads another usercontrol throught databinding: OnClick: DataBind() rptProduct_ItemDataBound: ViewSmall _viewSmall = (ViewSmall)...
2
by: Steve M | last post by:
A few users today received the message "The trust relationship between this workstation and the primary domain failed" on their web browser while using an ASP.NET web app. The problem went away...
0
by: sa6113 | last post by:
I am using this code to connect to a windows machine using paramiko, I have installed sshd on the machine and it works properly: sock.connect((hostname, port)) t = paramiko.Transport(sock)...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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...

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.