- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Microsoft
- >
- VBA code in Access 2000 only works in debugger
Operating System - Microsoft
1820879
Members
5281
Online
109628
Solutions
Forums
Categories
Company
Local Language
юдл
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
юдл
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-18-2003 04:29 AM
тАО05-18-2003 04:29 AM
VBA code in Access 2000 only works in debugger
I have some code that only works when I
"slow it down" by stepping through it in debugger w/ breakpoints inserted. The code seems to skip steps when I try to run it normally. Any idea why this is happening???
"slow it down" by stepping through it in debugger w/ breakpoints inserted. The code seems to skip steps when I try to run it normally. Any idea why this is happening???
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-18-2003 03:07 PM
тАО05-18-2003 03:07 PM
Re: VBA code in Access 2000 only works in debugger
You may not be initializing some of your variables properly, or may not be passing the value correctly. Some debuggers initialize all variables rather than leave them as "undefined".
Create a "debug" window, place screen write points rather than breakpoints and run the program normally, collecting the variable changes in the window (or output to a printer or logfile).
Jon
Create a "debug" window, place screen write points rather than breakpoints and run the program normally, collecting the variable changes in the window (or output to a printer or logfile).
Jon
"Do or do not. There is no try!" - Yoda
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-19-2003 01:36 AM
тАО05-19-2003 01:36 AM
Re: VBA code in Access 2000 only works in debugger
Dan, there are some VBA code that simply doesn't work if used without debugger. Let me explain better: suppose you have a report printer from a form, and you want to alter it's activate behaviour according to a variable in the form. Forget it. In debug mode you'll be able to do it. But not in "normal" mode.
Jorge
Jorge
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-19-2003 08:10 AM
тАО05-19-2003 08:10 AM
Re: VBA code in Access 2000 only works in debugger
Dan,
Sometimes today's machines are too fast. I've seen this before expecially when the code consists of various calls to other subroutines. Some commands invoke system routines that are multi-step.
Try injecting some "DoEvents" if there are places in the code that might fit what I have descibed. That'll give the system a chance to finish before continuing.
Sometimes today's machines are too fast. I've seen this before expecially when the code consists of various calls to other subroutines. Some commands invoke system routines that are multi-step.
Try injecting some "DoEvents" if there are places in the code that might fit what I have descibed. That'll give the system a chance to finish before continuing.
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Learn About
News and Events
Support
© Copyright 2025 Hewlett Packard Enterprise Development LP