dbTalk Databases Forums  

error 2501 "Openform action was cancelled"

comp.databases.ms-access comp.databases.ms-access


Discuss error 2501 "Openform action was cancelled" in the comp.databases.ms-access forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Phil
 
Posts: n/a

Default error 2501 "Openform action was cancelled" - 01-16-2011 , 01:47 PM






I have a database "Master Prog.AccDb" which sets a reference to another
database "Menu.AccDb" - bit like the old Switchboard system. Within
Menu.AccDb there are forms called "CoInfo", "Commands", "Icons", "MenuSetUp"
and "SetUpReferences" All open as expected other than "SetUpReferences" which
gives a 2501 error. Normally there are no tables in the "Menu" database, the
neccessary tables are linked to the Master database. If however I link the
appropriate tables to the Menu Db the "SetUpRefs" form works correctly. I
have decompiled and created a new Menu Db. Any bright ideas please
Phil

Reply With Quote
  #2  
Old   
Phil
 
Posts: n/a

Default Re: error 2501 "Openform action was cancelled" - 01-18-2011 , 03:44 AM






On 16/01/2011 19:47:34, "Phil" wrote:
Quote:
I have a database "Master Prog.AccDb" which sets a reference to another
database "Menu.AccDb" - bit like the old Switchboard system. Within
Menu.AccDb there are forms called "CoInfo", "Commands", "Icons",
"MenuSetUp" and "SetUpReferences" All open as expected other than
"SetUpReferences" which gives a 2501 error. Normally there are no tables
in the "Menu" database, the neccessary tables are linked to the Master
database. If however I link the appropriate tables to the Menu Db the
"SetUpRefs" form works correctly. I have decompiled and created a new Menu
Db. Any bright ideas please Phil
Solved it.
The form had a recordset, which of course it couldn't find as the tables are
held in the calling Db. ( It should have been blank) Fact that the recordset
is created dynamically on the OnOpen event doesn't seem to matter, presumably
Access "examines" the form first before it runs the OnOpen event. Phil

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.