RunCommand acCmdToggleOffline runtime error 2501

S

SandyZ

I am working with Access 2007 connected to SharePoint. I am NOT in runtime
mode.

When I try to use DoCmd.RunCommand acCmdToggleOffline or
Application.RunCommand acCmdToggleOffline to toggle on or offline, I get a
runtime error 2501. I am able to use CurrentDb.Properties("hasofflinelists")
to check the state of on or offline, but cannot go online programmatically.
What do I need to do to make this work?

Thanks for your help.
 
Top