I have recently started running some 2000 and 2003 format databases with Access 2007 and have noticed a few annoying issues. The one I'll discuss in this post is the fact that properties seem to "stick" or save in 07.
I've read quite a bit about filters saving on forms but I've had other properties save as well. For example I have several forms that I use for both data entry as well as record editing. I open them like this:
New Record:
docmd.OpenForm "FormName",,,,acFormAdd
Edit Previous Record:
docmd.OpenForm "FormName",,,"IDField = " & IDValue
Anyway, for some seemingly random reason every now and then after opening the form in acformadd mode the DataEntry property will be set to true and save that way. So later when I try to edit a previous record all I see is the new record screen.
To combat the problem I no longer use the default parameter and always specify either the acformadd or acformedit. (docmd.OpenForm "FormName",,,"IDField = " & IDValue, acFormEdit)
However, I would like to know what causes the form to save certain properties, every now and then and why.
Any ideas?
I've read quite a bit about filters saving on forms but I've had other properties save as well. For example I have several forms that I use for both data entry as well as record editing. I open them like this:
New Record:
docmd.OpenForm "FormName",,,,acFormAdd
Edit Previous Record:
docmd.OpenForm "FormName",,,"IDField = " & IDValue
Anyway, for some seemingly random reason every now and then after opening the form in acformadd mode the DataEntry property will be set to true and save that way. So later when I try to edit a previous record all I see is the new record screen.
To combat the problem I no longer use the default parameter and always specify either the acformadd or acformedit. (docmd.OpenForm "FormName",,,"IDField = " & IDValue, acFormEdit)
However, I would like to know what causes the form to save certain properties, every now and then and why.
Any ideas?