Adding label corupts form

mac300

Registered User.
Local time
Today, 19:38
Joined
Aug 9, 2007
Messages
12
Hi,

I use Access 2007 at work, and made a form with several buttons, which open other forms.

At first I labeled each button with what it does, but then decided to change it, so that I'll have a small button and a label beside it.

However, when I add a label, close the form and then go into it again, anything I do brings up a message saying Access encountered a problem :mad:. The moment I remove the label everything works again.

:confused: Any ideas as to why it's doing this? I would appreciat your help...

Let me know if you need any information, like codes and stuff, and where to get it from since I really don't understand that part of Access.
 
I experience something similar with reports and changing a text control to label. My workaround, was either copying another label, or probably the method you're using now. Very irritating and frustrating (kind of reminds me of using Windows ME (shudder)...)

Just try experimenting with different methods.

If you've gotten a form corruption, perhaps try dropping it to a textfile, then load it again through the (hidden) methods SaveAsText LoadFromText.

In a copy, and for instance in the immediate pane (ctrl+g)

application.saveastext acform, "NameOfForm", "c:\NameOfForm.txt"
' delete the form
application.loadfromtext acform, "NameOfForm", "c:\NameOfForm.txt"
 
Possible resolution

Well, I don't know why it worked, and I got to this "solution" accidentally.

I changed the name of the form, and wanted to design a new one. While I was designing the new form, I accidentally clicked on a button in the older form - and it worked.

So, I tested this again by deleting the new one, and changing the name back to what it was. It still worked.

So, this is how I now resolved it with my form.

No idea why it worked, but at this point I really don't care :D
 

Users who are viewing this thread

Back
Top Bottom