Active TopicsActive Topics  Display List of Forum MembersMemberlist  Search The ForumSearch  HelpHelp
  RegisterRegister  LoginLogin
PowerHome General
 PowerHome Messageboard : PowerHome General
Subject Topic: Recover from corrupt macro? Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
judetf
Senior Member
Senior Member


Joined: January 23 2008
Online Status: Offline
Posts: 234
Posted: May 31 2008 at 07:57 | IP Logged Quote judetf

This has happened a couple of times:

I'm editing a macro and I do something that results in an SQL error ("Delete Id = '?" AND Delete Sequence = '?' - or something like that).

If I click 'Cancel' on the error message, I am left in the macro detail screen where everything appears intact. However, if I go immediately to the Multi-Editor and query the macrodetail table for that macro, there are _no_ lines - it's gone, even though I can see it in the editor.

Attempting to save the macro with F5 just results in the same error. I haven't been able to figure out how to recover at this point. As soon as I hit 'OK' on the error message the macro essentially deletes itself (ie, I guess the macrodetail table gets queried and, since it's empty, the macro is gone).

Is there any way to recover the macro at the point where I can still see it and edit it on the macro detail screen? I know I can take screenshots and copy-and-paste out to Notepad and then rebuild the macro, but that seems... lame.

Any thoughts?
Thanks
jtf
Back to Top View judetf's Profile Search for other posts by judetf
 
TonyNo
Moderator Group
Moderator Group
Avatar

Joined: December 05 2001
Location: United States
Online Status: Offline
Posts: 2889
Posted: May 31 2008 at 10:58 | IP Logged Quote TonyNo

Have you tried Undo at that point?
Back to Top View TonyNo's Profile Search for other posts by TonyNo Visit TonyNo's Homepage
 
judetf
Senior Member
Senior Member


Joined: January 23 2008
Online Status: Offline
Posts: 234
Posted: June 01 2008 at 06:45 | IP Logged Quote judetf

I confess I haven't... I'll give that a shot the next time. However, I can say that in the one that just happened yesterday, I had worked only on a single formula (ie, one line) in a macro, and when I got the message my first thought was that the line was too long (I had made lots of comments) so I went back into it and (after copying-and-pasting) deleted most of what was in there and I was still unable to save at that point.

But I'll try undo and report back next time it happens.
jtf
Back to Top View judetf's Profile Search for other posts by judetf
 
TonyNo
Moderator Group
Moderator Group
Avatar

Joined: December 05 2001
Location: United States
Online Status: Offline
Posts: 2889
Posted: June 01 2008 at 09:47 | IP Logged Quote TonyNo

Anyone else seeing anything close to this? I can't say that I have.
Back to Top View TonyNo's Profile Search for other posts by TonyNo Visit TonyNo's Homepage
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum