473,395 Members | 2,222 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Form Events not working. Urgent

344 Expert 100+
Using Access 2003

Last night I created a new form, nothing special or funny about it. It has 3 toggle buttons on it, and I put an after_update event on them but it failed to work.

I now find that no event will work on any control in that form. They all give the same message

"The expression After_Update you entered as the Event Property setting produced the following error: Object or Class does not support the set of events"

The code in the form is like really basic and just there to test the events.

Anybody any idea what is going on as this has me stumped
Expand|Select|Wrap|Line Numbers
  1. Option Compare Database
  2. Option Explicit
  3. Private Sub DoubleCorrect_AfterUpdate()
  4. If DoubleCorrect Then
  5.     MainCorrect = False
  6.     NeitherCorrect = False
  7. End If
  8. End Sub
  9. Private Sub MainCorrect_AfterUpdate()
  10. MsgBox "Hello"
  11. End Sub
  12. Private Sub MainTableValue_AfterUpdate()
  13. MsgBox "Hello"
  14. End Sub
  15.  
  16. Private Sub NeitherCorrect_AfterUpdate()
  17. If NeitherCorrect Then
  18.     MainCorrect = False
  19.     DoubleCorrect = False
  20. End If
  21. End Sub
  22.  
  23.  
May 31 '07 #1
4 5289
puppydogbuddy
1,923 Expert 1GB
Using Access 2003

Last night I created a new form, nothing special or funny about it. It has 3 toggle buttons on it, and I put an after_update event on them but it failed to work.

I now find that no event will work on any control in that form. They all give the same message

"The expression After_Update you entered as the Event Property setting produced the following error: Object or Class does not support the set of events"

The code in the form is like really basic and just there to test the events.

Anybody any idea what is going on as this has me stumped
These are all AfterUpdate events for controls, which are not triggered until something has been keyed in. Programmed (background) updates do not trigger the AfterUpdate event for a control, but they do trigger the after update event for the form.
May 31 '07 #2
Lysander
344 Expert 100+
These are all AfterUpdate events for controls, which are not triggered until something has been keyed in. Programmed (background) updates do not trigger the AfterUpdate event for a control, but they do trigger the after update event for the form.
Hi Puppydogbuddy,

I am keying something in. What I wanted to do was set the other two fields false after the user clicks one true. ATM, I can't get any event to trigger on any control in this form, I keep getting the error message from Access.

All the events on all the other forms work fine, its just this latest form giving this error.
May 31 '07 #3
puppydogbuddy
1,923 Expert 1GB
Hi Puppydogbuddy,

I am keying something in. What I wanted to do was set the other two fields false after the user clicks one true. ATM, I can't get any event to trigger on any control in this form, I keep getting the error message from Access.

All the events on all the other forms work fine, its just this latest form giving this error.
Then, I would venture to say you have a corrupted form, unless the error message indicates otherwise. Did you check to see that the event property for each of the controls shows that the AfterUpdate Event has been set?
May 31 '07 #4
Lysander
344 Expert 100+
Then, I would venture to say you have a corrupted form, unless the error message indicates otherwise. Did you check to see that the event property for each of the controls shows that the AfterUpdate Event has been set?
Looks like corruption. Tried compact and repair, then decompile, still no joy. Then found this on a google search and it fixed the problem. Seems its a known access bug.

Application.SaveAsText acForm, "fsubDoubleEntryCorrectionDetail", "C:\fsubDoubleEntryCorrectionDetail.txt"

Then delete form and do

Application.LoadFromText acForm, "fsubDoubleEntryCorrectionDetail", "c:\fsubDoubleEntryCorrectionDetail.txt"
May 31 '07 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

8
by: Zlatko Matić | last post by:
There is a form (single form) and a combobox. I want that current record of the form is adjusted according to selected value in the combobox. Cuurrent record should be the same as the value in the...
8
by: CJack | last post by:
hy, I have an mdi application, i create a child form and I want to know when a button is pressed while that child form is loaded. I have this code: private void frmTestBaby_KeyUp(object sender,...
8
by: Ryan | last post by:
Ok.. I have a form with lots of stuff on it; a tool strip panel, menu strip, data binding elements (dataset, binding source, table adapter), tab control with 7 tab pages, each page contains a...
13
by: cj | last post by:
In a project done in 2003 about a year ago I was told to add the SocketWrench code below into the Windows Form Designer generated code area as shown below. #Region " Windows Form Designer...
4
by: Tim Mackey | last post by:
hi, asp.net 2. can anyone explain why this code does not work in firefox (2.0.0.1), but does work in IE 7. if you hit enter after typing something into the textbox, it should fire the Submit...
3
by: Mike | last post by:
Hi, I'm wondering if I can do this with ASP.NET?
6
by: Simon | last post by:
How to pass messages through events from a user control to its containing page, or to another user control? Is there any recommended way? Thanks very much.
1
by: moondaddy | last post by:
I have a c# 3.5 wpf app which uses user controls for data entry screens. These data entry screens can be nested inside of each. We can also have several ones open side by side at the same time. ...
1
by: \Ji Zhou [MSFT]\ | last post by:
Hello Jason, Thanks for using Microsoft Newsgroup Support Service, my name is Ji Zhou and I will be working on this issue with you. I have tried to but cannot reproduce your issue on my side....
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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...
0
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...
0
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,...

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.