Can't save the form button code

  • Thread starter Thread starter konicaminolta via AccessMonster.com
  • Start date Start date
K

konicaminolta via AccessMonster.com

I add a command button on a form to open another form or report. I save the
form and everything seems ok.
When I bring the form up again, the code isn't saved.
 
Your project is corrupting. A decompile will probably fix it.

Try this sequence:

1. Uncheck the boxes under:
Tools | Options | General | Name AutoCorrect
Explanation of why:
http://allenbrowne.com/bug-03.html

2. Compact the database to get rid of this junk:
Tools | Database Utilities | Compact

3. Close Access. Make a backup copy of the file. Decompile the database by
entering something like this at the command prompt while Access is not
running. It is all one line, and include the quotes:
"c:\Program Files\Microsoft office\office\msaccess.exe" /decompile
"c:\MyPath\MyDatabase.mdb"

4. Open Access, and compact again.

--
Allen Browne - Microsoft MVP. Perth, Western Australia.

Reply to group, rather than allenbrowne at mvps dot org.

message
news:[email protected]...
 
Back
Top