Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Unload Me Not Work

Status
Not open for further replies.

yaya013

Programmer
Jun 4, 2003
53
IL
Hello all !!

Is it possible to close a form in Access Project with Unload Me
(like in visual basic)??

 
I normally use
DoCmd.Close
but Unload "FormName" works OK as well.
 
when i write unload me or the form name
i get
Run Time error 361
Can't Load Or Unload this Object
 
I've just tested it (using Access XP) and you're right. Unload Me or Unload Formname doesn't work for the active form. I don't know if it has always been there in Access because I use the Close command.

It's not an ADP issue, it happens with both APDs and MDBs.

Can't you code around it?
 
Yes, the DoCmd.Close works OK.
but the unload is cleaning the memory better .

thanks.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top