Error 2950

I

imspringer

I am trying to create a flashcard database, so I need the answer control to
vanish when I open a new record, and to reappear when I click on it. I wrote
the following macro to accomplish this:

OnCurrent
GoToControl: Answer
SetProperty, Enabled, ffffff
StopMacro

It doesn't really seem to matter what macro I create, I seem to always get
an Error 2950. I understand that this means that access doesn't trust the
application.

I checked the MS Access Trust Center Settings/Trusted Locations, and I have
it set up to trust all directories under my Documents folder (include
subfolders). I even added the an explicit trusted location for the folder
containing my application, but that made no difference.
 
S

Steve Schapel

Imspringer,

I do not know what Error 2950 is all about. But I would say your macro
needs some work.

You are setting the focus to the Answer control, and then trying to
manipulate its Enabled property. First of all, from your use of the
word "vanish" in your description, I imagined that it would be the
Visible property you would be working with. In any case, you won't be
able to disable the control when it has the focus. You need to set the
focus to *another* control before you can hide or disable the Answer
control.

And what is "ffffff"? Please check your macro here, this doesn't make
sense.

And then the use of a StopMacro action is also puzzling, as it does not
appear to achieve anything, and can be removed from the macro.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top