View Full Version : Checkbox


MikeAngelastro
09-14-2001, 12:51 PM
Hi,

I am confused about checkboxes. I added one to a form I had already developed, but it would not change states when I clicked it. I had to put code in the MouseUp event to toggle it's value.

I then, as a test, I added a checkbox to a new form with nothing else on it and to an autoform. In both of these cases it worked.

So I went back to the first form and added another checkbox from the toolbox. It wouldn't work either. I compared the properties of the two forms but I found no significant differences yet each form handles a checkbox differently.

Has anyone else had this experience?

Thanks,

Mike

Rich
09-14-2001, 01:05 PM
Corrupt form maybe? Try copying it and make sure you compile and save any code.
HTH

MikeAngelastro
09-18-2001, 08:19 AM
Thanks Rich,

I fixed it. I had heard that if you import an entire *.mdb, the process will stop on the object that is corrupt. You could then fix it. This worked for me in the past so I did it in this case, but everything was imported. I also remembered that in the past the corruption was usually somewhere in the form's code. So I made another copy of the suspected form and copied only part of the code into it, the checkbox worked. I then copied in more of the code, tried the checkbox again. I did this until the checkbox stopped working. I narrowed it down to the code in the form's load event. I merely spaced a few lines below it and retyped that code and erased the original code. That fixed it.

Thanks again.

Mike