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.
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.