"contact management database"
"you can't disable a control while it has the focus."
When Ok is clicked, this error box shows up:
"action failed"
Macro Name:
Contact List : cmdShowAll : OnClick : Embedded Macro
Condition:
True
Action Name:
SetValue
Arguments:
[Forms]![Contact List]![cmdShowAll].[Enabled], 0
Error Number:
2950
On the second error box, the only option available to click is "stop all
macros" It is strange because sometimes we would run a search for a persons
name, then click the show all button to get back to the entire list, and
there would be no error. More times than not though the error will show up.
As I said, it is a list for a hair salon so it is important that this be
error free by the time it goes to them. Any idea what would be causing this?
Thanks
Arguments:
[Forms]![Contact List]![cmdShowAll].[Enabled], 0
You don't always get the error because it may be possible that the focus is
no longer on the button. To avoid getting the error put a line at the
beginning of your macro that moves the focus to a different control.
--
Dave Hargis, Microsoft Access MVP