473,396 Members | 2,068 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,396 software developers and data experts.

How to enable the scripting error warnings again?

When I try to run a script that isn't working, instead of popping up with the error message and taking me to viasual basic showing me where the problem is, it does nothing!!

Very annoying as I cant tell where any problems are!

What have i done to it?
Jan 21 '11 #1

✓ answered by TheSmileyCoder

Is your error handling disabled for all your code?

Is your code running at all? Have you tried putting a
Expand|Select|Wrap|Line Numbers
  1. msgbox "Test" 
at the beginning of the code to verify that it is indeed running?

Otherwise try doing a decompile. You can achieve this by selecting (Windows) Start ->Run and typing:
Expand|Select|Wrap|Line Numbers
  1. "C:\Program Files\Microsoft Office\OFFICE11\MSACCESS.EXE" /decompile
(Modify as appropriate) and then open your database while holding down SHIFT, and then open VBA and select Debug->Compile.

Hope some of that helps.

TheSmileyCoder

5 1723
TheSmileyCoder
2,322 Expert Mod 2GB
What may have happened is that you have used a command like:
Expand|Select|Wrap|Line Numbers
  1. On Error Resume Next
basicly telling the program to ignore errors.
To resume normal error handling you can write:
Expand|Select|Wrap|Line Numbers
  1. On Error Goto 0
There are probably other ways you can achieve what you have done, by modifying the settings, but before looking into all that I would start by rebooting your PC and see if that doesn't solve the problem.
Jan 21 '11 #2
Nope, I tried writing that AFTER I had the original problem just to see if I could get the code to run.
Jan 21 '11 #3
TheSmileyCoder
2,322 Expert Mod 2GB
Is your error handling disabled for all your code?

Is your code running at all? Have you tried putting a
Expand|Select|Wrap|Line Numbers
  1. msgbox "Test" 
at the beginning of the code to verify that it is indeed running?

Otherwise try doing a decompile. You can achieve this by selecting (Windows) Start ->Run and typing:
Expand|Select|Wrap|Line Numbers
  1. "C:\Program Files\Microsoft Office\OFFICE11\MSACCESS.EXE" /decompile
(Modify as appropriate) and then open your database while holding down SHIFT, and then open VBA and select Debug->Compile.

Hope some of that helps.

TheSmileyCoder
Jan 21 '11 #4
That worked! Yay! (the decompile Bit)

Thankyou very much!
Jan 21 '11 #5
TheSmileyCoder
2,322 Expert Mod 2GB
Yay - Im happy to hear that.
TheSmileyCoder
Jan 21 '11 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Joe | last post by:
If I disable the form control, even I post it, it still cannot get the value. Is that correct <form action="page2.asp" method="post"><INPUT TYPE="TEXT" name="fname" value="Joe"...
2
by: John | last post by:
Can't get this to work. I'm creating a workaround for the absence of aspJPEG on my server. I'm using aspUpload but my server only uses aspThumb. After aspThumb optimizes the original pic the file...
6
by: Charles Crume | last post by:
Hello; My index.htm page (www.charlescrumesoftware.com for those interested in looking) contains 3 frames (left = content, top right = logo, bottom right = navigation). This domain name is...
5
by: steve02a | last post by:
I have a simple html form built that a user puts name, company, address..blah..blah, you know - and it dumps it all in a db I created in MySQL. Below is my php script: <?php if...
9
by: questions? | last post by:
What's wrong with the following sudo-code? ****************************** # include <stdio.h> # include <string.h> char *test="I am the string you testing on"; int main(){ char *point;
24
by: mhifd009 | last post by:
I have a situation that never occured in access 97 and Im really stuck as to where to find the solution, in the reports and forms I have set various variables, and control parameters via the coding...
3
by: jx2 | last post by:
i've just upgrated to the newest version of php and apache instead of error messages(for debuging) i see only error 500 page i tried to change php.ini but i dont thing thats make any difference...
2
by: Comcast | last post by:
I am using a form that uses PHP to create an e-mail and send it off. When the script runs, I get an error page, although the e-mail is sent off. The error I am getting is: Warning:...
1
by: cuthien | last post by:
I'm using visual studio, and i'm trying to find my error. i you could please point out what I'm doing wrong, I would appreciate it. Right now I keep getting error error C2064. char name; double...
3
by: ziycon | last post by:
What would be the pros/cons of turning off error warnings in the website pages like below? What are peoples opinions on this approach? <?php error_reporting(0); ?>
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:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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...
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
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
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.