By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,289 Members | 1,716 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,289 IT Pros & Developers. It's quick & easy.

Exiting a textbox causes cmdSave code to execute

P: n/a
When I exit a textbox on a form, the code attached to my cmdSaveRecord
executes, as if I had somehow clicked cmdSaveRecord.

I have gone through the compact-decompile-compact-compile-compact process,
so I think I have the junk purged.

Is there a property of the textbox I might have set that causes this
behavior, or might something else be happening?

If nothing comes to mind, can someone suggest a workaround for this?

Thanks for any help.

Larry Mehl

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.600 / Virus Database: 381 - Release Date: 2/28/2004
Nov 12 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
This is usually caused by having the code in the "on enter" event of the
button, instead of th "on click" event.

--
=================
Jeremy Wallace
AlphaBet City Dataworks
ABCDataworks dot com
"L Mehl" <me*********@cyvest.com> wrote in message
news:2g*****************@newsread2.news.pas.earthl ink.net...
When I exit a textbox on a form, the code attached to my cmdSaveRecord
executes, as if I had somehow clicked cmdSaveRecord.

I have gone through the compact-decompile-compact-compile-compact process,
so I think I have the junk purged.

Is there a property of the textbox I might have set that causes this
behavior, or might something else be happening?

If nothing comes to mind, can someone suggest a workaround for this?

Thanks for any help.

Larry Mehl

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.600 / Virus Database: 381 - Release Date: 2/28/2004

Nov 12 '05 #2

P: n/a
Jeremy --

Thank you very much for writing.

That was the problem. I put a line of code there to set a variable, and
then forgot about it.

If you had not mentioned the solution it might have stayed there,
undiscovered, for years!

Larry Mehl
"Jeremy Wallace" <cd**@abcdataworks.SKIPTHISPART.com> wrote in message
news:CL********************@speakeasy.net...
This is usually caused by having the code in the "on enter" event of the
button, instead of th "on click" event.

--
=================
Jeremy Wallace
AlphaBet City Dataworks
ABCDataworks dot com
"L Mehl" <me*********@cyvest.com> wrote in message
news:2g*****************@newsread2.news.pas.earthl ink.net...
When I exit a textbox on a form, the code attached to my cmdSaveRecord
executes, as if I had somehow clicked cmdSaveRecord.

I have gone through the compact-decompile-compact-compile-compact process, so I think I have the junk purged.

Is there a property of the textbox I might have set that causes this
behavior, or might something else be happening?

If nothing comes to mind, can someone suggest a workaround for this?

Thanks for any help.

Larry Mehl

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.600 / Virus Database: 381 - Release Date: 2/28/2004


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.600 / Virus Database: 381 - Release Date: 2/28/2004
Nov 12 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.