Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

command or action isn't available now

Status
Not open for further replies.

dpimental

Programmer
Jul 23, 2002
535
US
All, I am running the following code
Code:
 DoCmd.RunCommand acCmdRefresh
And getting the error "action or command not available now" run-time error 2046.

And the intelisense isn't working (such as Me.)

Any ideas?

David Pimental
(US, Oh)
 
Tell us what happened when you attempted to compile your code.

Provide some context to the environment when you are attempting to run the code that generates the error.

Duane
Hook'D on Access
MS Access MVP
 
It actually compiled fine, although the intellisense doesn't seem to be working.
It doesn't recognize Me.


David Pimental
(US, Oh)
 
Thanks. I'll take a look.
Here's a weird thing.
If I use acCmdRefresh - it throws an error.
If I use acCmdRefreshPage - I get no error.



David Pimental
(US, Oh)
 
Where, exactly, are you trying to use Me?

And what version of Access are you running?

The Missinglinq

Richmond, Virginia

The Devil's in the Details!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top