473,800 Members | 2,444 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

openform action was cancelled - why?!?

Folks,

I have an Access front end to a SQL Server 2k back end.

The database consists of 5 main "record types" (many more tables than
this however) - Test Logs (TLs), 2 Test Executions (TEs), 3 Test
Reports (TRs), 4 Observation Reports (ORs), and 5 Change Reports
(CRs).

All TEs have a parent TL.
TEs can have child TRs, but TRs can be raised separately.
TRs can have child ORs, but ORs can be raised separately.
ORs can have child CRs, and CRs cannot be raised any other way.

For each record type there is a datasheet view listing all the records
of that type, and a form view to view the details of any one record of
that type.

Within each form view there is either a subform listing all "child
records", or a text box linking back to the parent (if any).

Now, I can go into a TL from the datasheet, and click on a child TE,
no problem. I can go into the TE from the datasheet, and click on a
child TR no problem. BUT if I go into the TL from the datasheet, then
click the TE, then click the TR, I get the good old "openform action
was cancelled" error - triggered on the docmd.openform line of the on
click handler - NOT in the form open event. What Im saying is I all
the "parent / child form relationships" work fine - but I get the
error when trying to move to a 3rd generation.

Any clues?

Thanks

Steve
Nov 12 '05 #1
0 1420

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
6879
by: Stuart Clark | last post by:
Hi, I have the following lines of code: stLinkCriteria = " BETWEEN " & & " AND " & DoCmd.OpenForm stDocName, , , stLinkCriteria Every time I try and run this I get the following error: Run-Time Error 2501 The OpenForm action was cancelled.
3
6215
by: Prakash Wadhwani | last post by:
In an openform event if I type cancel=true a msgbox pops up saying: "The OpenForm Acion was cancelled" This is iritating. Is there any way to turn of this message via VBA? Thx & Best Rgds, Prakash.
2
14111
by: John Phelan-Cummings | last post by:
After creating a button on a (parent) form linking to another (child) form, I received the following error when clicking on the command button: "The OpenForm action was canceled" No the child form is not a subform. I should also add that I created code in the properties window stating that the "child" "number" field on the form (that I was navigating to),
2
1819
by: jeffrod444 | last post by:
Hi, I've been having problems getting my forms to work correctly. If seen other threads addressing this issue, however, these are not working for me. The short of my problem is this. I am trying to open a new form and initialize it with a db query based on the info in the current form. This wasn't a problem until I changed the table's primary key to an Autonumber. tblLockCore.lockId is the autonumber at the source of the problem... ...
4
20880
by: SDL | last post by:
Help! I have a system that was running fine and I was testing a bottom level form. I went from a menu to a screen where I could enter a phone number or name to find a customer. If the customer name hit on more than one person ther is an interim selection screen. I have been running thru these screens for 2 days now and everything was fine and suddenly I get "The OpenForm actionwas cancelled." Run Time err 2501? This is happening on...
4
1903
by: sid | last post by:
Can someone tell me how to detect "Action Cancelled" page with out polling. I have a frame set and I want to make sure the other frame is displaying what it is supposed to without polling. For some reason the page does not file OnError or OnLoad events. Any help is appreciated. Thanks
2
12876
by: mark mestrom | last post by:
hi, i have this problem with OpenForm and the stLinkCriteria. I have the following code: Private Sub Knop22_Click() On Error GoTo Err_Knop22_Click Dim stDocName As String Dim stLinkCriteria As String stDocName = "ALAHistorieEdit"
3
7495
by: victoria.rego | last post by:
Hi there, My application is generating a "The OpenForm action was cancelled" error and I can't seem to figure out why. The best part about it is that it's only one user in the entire building - it works perfectly fine for the rest of us. So troubleshooting is extremely difficult. Here is the code involved. The command button that opens the form, the code in the form, and the code in the subform of the form.
3
2925
by: ladybug76 | last post by:
Hello Again. I'm so close I can TASTE IT! I'm working in Access 2003. I've read a bunch of posts, but still can't get to the bottom of this. I have a "Selection Criteria" form (with Two free form Text Boxes Named Line_Num and Claim_Num). Based on the entry in both fields, the users want to click on a button that launches and filters the returned results of the "Main form" by the Line and Claim numbers from the Selection Form. ...
0
9691
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9551
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10505
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10253
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10035
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9090
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7580
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6813
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5606
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.