G
Graham Mandeno
Hi Kevin
DoCmd.Close can behave asynchronously and works on the form which currently
has the focus, so I suspect what is happening is that sometimes you are
attempting to close the MainMenu form while it is in the act of opening.
Always specify what you want to close:
DoCmd.Close acForm, Me.Name
I see you say you have already tried this, but try it again anyway
My main concern is that you should NEVER store an easily calculatable entity
such as Full Name like this. It is so easy to make a query with a
calculated field to give you the Full Name from its component parts as and
when you need it, and in the format required for the purpose.
I recommend you remove the Full Name field from your table.
--
Good Luck!
Graham Mandeno [Access MVP]
Auckland, New Zealand
time. I can't figure out what is going on to have the error come up
randomly. I've tried to run it without the SQL statement before the close,
DoCmd.Close can behave asynchronously and works on the form which currently
has the focus, so I suspect what is happening is that sometimes you are
attempting to close the MainMenu form while it is in the act of opening.
Always specify what you want to close:
DoCmd.Close acForm, Me.Name
I see you say you have already tried this, but try it again anyway
My main concern is that you should NEVER store an easily calculatable entity
such as Full Name like this. It is so easy to make a query with a
calculated field to give you the Full Name from its component parts as and
when you need it, and in the format required for the purpose.
I recommend you remove the Full Name field from your table.
--
Good Luck!
Graham Mandeno [Access MVP]
Auckland, New Zealand
', ' & [FirstName] & ' ' & [Title]"Kevin Rodriguez said:I have a procedure that runs on Click from a form. The code, in brief:
DoCmd.RunSQL "UPDATE Contacts SET Contacts.[Full Name] = [LastName] &
be carried out while processing a form or report event), but not all theDoCmd.Close
DoCmd.OpenForm "MainMenu"
I'm getting the above referenced error (error message: This action can't
time. I can't figure out what is going on to have the error come up
randomly. I've tried to run it without the SQL statement before the close,
what ever...it still fails. I've been explicit including "acForm said:I'm a novice and wondering if I set one of my properties incorrectly, or