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!

Saving a Form

Status
Not open for further replies.

cc5305

MIS
Oct 4, 2000
70
US
Hi, I've create a Form object while running the codes in VB. But I've found that the object will not be in existence if I simply by the statement (the form name is the name of the Form object that was created, usually Form1, Form2, etc.):
Docmd.closeobject acform,form_name, acSaveYes
So I figure that I should save the Form since I haven't really given the Form a name. So I decided to do this before I close it:
Docmd.Save acForm,form_name
However, everytime the codes runs to that part, I receive the message that says "Access cannot complete this operation at this time. Please stop your code and try again." What am I doing wrong that makes me get this message? Is there another way to save the form at all? Thanks in advance.
 
Try This:
DoCmd.Close acForm, "YourFormName", acSaveYes
Hope it helps!
-Geno
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top