Hi All
Is it feasible to create a "break out" routine in a run time version of my software, activated by say, ctrl, F5 and a Q, to allow me, the developer, to crash out of the app into an Access mode in a split database that under normal circumstances would not allow the users to do so?
if yes, I would appreciate some guidance as to how to do it.
Thank you,
Alan
Feasible, yes. Simple, maybe. The question is, does the keyboard still work when you get into the bad situation? If so, you can do this:
1. Hit CTRL/SHIFT/ESC - which is the shortcut to launch Windows Task Manager
2. Switch to the WTM window. Maximize it.
3. Select the Processes display. Inspect it to find the running Access process.
4. Select the line containing that process.
5. Right-click on that line, then immediately click "End Task" (usually 2nd item in the dropdown list of actions)
IF it happens that the app is intercepting ALL keystrokes, this approach might not work, though Dave Cutler (one of the designers of WinNT) says that some keystrokes of the "simultaneous press" variety bypass most key interceptors. Which is why CTRL/ALT/DEL - the infamous three-finger salute - will also work to stop even runaway programs. IF it is possible for WTM to respond, it will leave your client logged in but with that runaway program no longer running away. Unfortunately, if there was an update underway, it risks corrupting the DB, which is the same fate you would face with CTRL/ALT/DEL and my other favorite for getting a computer's attention - pulling the plug.
EDIT: Misread part of this because I was in a rush. What I posted is how you get out to Windows without logging out like CTRL/ALT/DEL would do. To get out of execution and break into Access GUI so that you can do some twiddling of the FE, as I understand it, if it is a "true" runtime environment, you cannot do that. If it is a fake runtime because you renamed the .ACCDE to an .ACCDR, there is still the problem that you can't see the code text in a DE because it ain't there. If you use a fake runtime of changing an ACCDB to an ACCDR, I think Access still wouldn't allow that, but you COULD have started a program with the "real" FE (or better still, a copy of it) and just launch it. The whole point of a runtime execution is that there IS no development mode. You put it into a runtime situation to PREVENT development mode.
In general, if you have a requirement to break out of code so you can twiddle, you have to design your solution up front before you implement anything.
This link points to a similar question to yours for which our member, Albert D. Kallal posts a lengthy discussion.
Hi all Since I have installed O365 2016 when I use the command Stop to break execution Access close throw the message: Microsoft Access has stopped working like in this image Now with the 2008 Version the situation got worse because this…
learn.microsoft.com