Do you mean you actually put "Me.Requery" in the Property Sheet for the
AfterUpdate Event of the Combo Box? That's the only thing I can think of
that would likely give you that particular message.
Two problems: the shortcut "Me" which refers to the active Form, not to a
particular control, can only be used in VBA code, and what you put in the
event property is not VBA code. Thus Access sees it doesn't read "Event
Property", and tries to interpret it as a macro, which it does not find.
To requery ComboBoxA, create an event procedure, and in the code put
Me!ComboBoxA.Requery -- but, be aware that requerying a combo box only makes
certain that its Row Source (the information in the dropdown list) is
up-to-date. I can't imagine why that would be necessary in the Combo's own
AfterUpdate event.
I can't quite determine from your statement of the problem if Combo Boxes A
and B are related to each other, or just to the Information on the Form.
Also "requrey ComboBoxA after I have updated it" -- to what does "it" refer
here, and what do you mean by "updated it"?
Please clarify and perhaps someone will be able to offer suggestions.
Larry Linson
Microsoft Access MVP
"Scott" <ko******@yahoo.com> wrote in message
news:12**************************@posting.google.c om...
I have created a form that has a few combo boxes on it. On the form I
have ComboBoxA which selects data from a region, and ComboBoxB that
selects individual locations within a selected region. I need to
figure out the correct way to Requery ComboBoxA after I have updated
it. I searched the archive for this list and found a simple solution:
put Me.Requery in the AfterUpdate event of ComboBoxA. However, when
I try this I get an error message "... can't find the macro 'Me'.."
What am I doing wrong ?
Thanks for any help on this, Scott