I have encountered this bug. You are correct, it only happens on Win XP and
Access 2002. The best that I can figure out is that it happens between
Access and the OS messaging system.
You can work around the problem by restoring the form just before closing:
DoCmd.Restore
DoCmd.Close
--
Arvin Meyer, MCP, MVP
Microsoft Access
Free Access downloads:
http://www.datastrat.com
http://www.mvps.org/access
Bob said:
Yes this is a very old application. Unfortunately, the company that is
using this application has sent it out to many customers in the past. This
company is now standardizing on Windows 2000 and once this application
converted as is. The company sent me an access 2000 version that they tried
to get working but they could not get it to compile cleanly. I obtained a
white paper for converting access 2.02 access 97 which indicated various
changes in the programming code. I made every one of these changes and got
the program to compile cleanly. Even though I am using access 2002, when
looking at tools database convert it to show me that it now thinks this
application is access 2000. I checked out all of the data that is displayed
between the Microsoft access 2 and the access 2000 converted program and the
results are the same in both. As a matter of fact, when the converted
access 2000 version was sent back to the company it works great. It does
not have the strange query type " enter value for xxx field" that I see when
I close the current form. The close button I use just goes to an on click
subroutine that issues DoCmd.Close. I have also checked out the on activate
subroutine from the form that shows up once the current form is close and
found nothing there that would be a problem. Actually, I can't just click
OK to the query like pop up that occurs after the current close form has
taken place, and it gets me back to the form I want.
I am surprised that it works fine on his company's computer system that is
using Windows 2000, but it is working differently when using Windows XP and
the Microsoft access 2002 version.