473,509 Members | 2,951 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Error: You cancelled the previous operation

I've received this error several times, and have only been able to get
around it by deleting the offending form(s) and importing them from backup -

Here's the sequence:
1. I'm editing a form or code in a form module in MSAccess2000 on Win2k
Terminal Server.
2. When I try to save, I get the "Save As" dialog box instead of a regular
save. I click Cancel. I never know when this will occur, it's happened 3
or 4 times in 6 months.

After this if I try to open the form I get the error msg "Compile Error: You
cancelled the previous operation" a number of times, and then I get "Module
not found".

If I try to open the form in design mode, nothing happens. Renaming isn't
allowed.

I've tried repair compact, jetcomp.exe and decompiling all without success.

I noted an old post that mentioned dlookup not making sense of criteria
causing this error msg, but that doesn't seem to be the case here, though I
may be missing something.

Any help understanding this would be greatly appreciated,
Thanks,
John
Nov 13 '05 #1
2 10394
Given the symptoms you describe, the error message does indicate some kind
of corruption. The problem may not be completely preventable in Access 2000,
but these ideas may help.

To recover, try exporting the corrupted form to text, with the undocumented
SaveAsText. Then create a new (blank) database, turn off the Name
AutoCorrect boxes (Tools | Options | General), import the other objects
(File | Get External | Import), and then try retrieving the failed form with
LoadFromText. Set the minimal references you need, and check that the
application compiles.

For suggestions on preventing corruption, see:
http://members.iinet.net.au/~allenbrowne/ser-25.html
#2 and #5 are the most likely causes for the case you describe.
#4 is also crucial, and may be a factor in a Terminal Server environment.

--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"John A." <ja********@nomailhere.net> wrote in message
news:Unq1d.745$t61.78@clgrps13...
I've received this error several times, and have only been able to get
around it by deleting the offending form(s) and importing them from
backup -

Here's the sequence:
1. I'm editing a form or code in a form module in MSAccess2000 on Win2k
Terminal Server.
2. When I try to save, I get the "Save As" dialog box instead of a regular
save. I click Cancel. I never know when this will occur, it's happened 3
or 4 times in 6 months.

After this if I try to open the form I get the error msg "Compile Error:
You
cancelled the previous operation" a number of times, and then I get
"Module
not found".

If I try to open the form in design mode, nothing happens. Renaming isn't
allowed.

I've tried repair compact, jetcomp.exe and decompiling all without
success.

I noted an old post that mentioned dlookup not making sense of criteria
causing this error msg, but that doesn't seem to be the case here, though
I
may be missing something.

Any help understanding this would be greatly appreciated,
Thanks,
John

Nov 13 '05 #2
Allen,
Thank you for such a thoughtful answer full of good suggestions. I'm not
currently corrupted and did indeed find that Name Auto Correct had not been
disabled in this particular project. Also found a subform in the offending
form that didn't have a text box for the field in the LinkChildFields
property of the subform.

When corrupted the project did indeed act as if it were still in break mode,
much like your description under point 5 in your 'Preventing Corruption'
list.

When the Terminal Server clears out tonight, I'll create a new db with
NameAutoCorrect off and move all objects - hopefully that will be the end of
it.

Thanks again for your cogent assistance,

John
"Allen Browne" <Al*********@SeeSig.Invalid> wrote in message
news:41***********************@per-qv1-newsreader-01.iinet.net.au...
Given the symptoms you describe, the error message does indicate some kind
of corruption. The problem may not be completely preventable in Access 2000, but these ideas may help.

To recover, try exporting the corrupted form to text, with the undocumented SaveAsText. Then create a new (blank) database, turn off the Name
AutoCorrect boxes (Tools | Options | General), import the other objects
(File | Get External | Import), and then try retrieving the failed form with LoadFromText. Set the minimal references you need, and check that the
application compiles.

For suggestions on preventing corruption, see:
http://members.iinet.net.au/~allenbrowne/ser-25.html
#2 and #5 are the most likely causes for the case you describe.
#4 is also crucial, and may be a factor in a Terminal Server environment.

--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"John A." <ja********@nomailhere.net> wrote in message
news:Unq1d.745$t61.78@clgrps13...
I've received this error several times, and have only been able to get
around it by deleting the offending form(s) and importing them from
backup -

Here's the sequence:
1. I'm editing a form or code in a form module in MSAccess2000 on Win2k
Terminal Server.
2. When I try to save, I get the "Save As" dialog box instead of a regular save. I click Cancel. I never know when this will occur, it's happened 3 or 4 times in 6 months.

After this if I try to open the form I get the error msg "Compile Error:
You
cancelled the previous operation" a number of times, and then I get
"Module
not found".

If I try to open the form in design mode, nothing happens. Renaming isn't allowed.

I've tried repair compact, jetcomp.exe and decompiling all without
success.

I noted an old post that mentioned dlookup not making sense of criteria
causing this error msg, but that doesn't seem to be the case here, though I
may be missing something.

Any help understanding this would be greatly appreciated,
Thanks,
John


Nov 13 '05 #3

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

Similar topics

1
8340
by: daniel kern | last post by:
Please help with the following issue. I am trying to dump a table. My mysqldump command is: mysqldump.exe -u xx -P xx --add-drop-table --quick --extended-insert --result-file=xx "--where=cdrdate...
0
1283
by: Jeff Pritchard | last post by:
Has anybody had a problem with the SaveAsText function causing an error 'you cancelled the previous operation'. I have some code that was previously working fine, but now is giving this error. I am...
2
6846
by: Richard Hollenbeck | last post by:
I got this: "Error 2001 You cancelled the previous operation" with this: Private Sub courseCode_GotFocus() Dim myDLookupResults As String myDLookupResults = DLookup("courseID", "courses",...
2
1360
by: tara99 | last post by:
I am trying to update a table. It works but at the end the system displays the following Message "Previous operation cancelled" Does any one know what does this means. Thanks
6
1801
by: Widge | last post by:
I've been using code similar to this: Option Compare Database Private Sub Form_Open(Cancel As Integer) SetFilter
1
2102
by: noneedforthis | last post by:
I'm a new user of Access/VB and ran in to this nasty wall. (Access 2003, VB6.3, Windows XP) Runtime Error 2001: You cancelled the previous operation. The highlighted line is the one where the...
7
1439
by: Neekos | last post by:
Some of this may look familar to some of you, as part of it was posted previously. As i got farther along, i realized i was missing part of it and had to go back and redesign. The code is not fully...
1
3029
by: paulw4 | last post by:
I have the code below to run a query, that is created from a "fill in the blanks" form. I am now getting the error "You cancelled the previous operation" Earlier when I got this I closed the...
7
1646
jmoudy77
by: jmoudy77 | last post by:
I've got some vb code that gives me a "previous operation cancelled" error when I try and open the form as a subform in a tabbed control. When I open the form itself I don't get the error. Does...
0
7237
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
7137
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7347
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
7506
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
5656
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,...
1
5062
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3218
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3207
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
443
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.