473,394 Members | 2,031 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,394 software developers and data experts.

Access fails when clicking on a subform

Hi

I have what seems a corruption of an mdb that is not solved by the
decompile command line trick.

The problem appears when clicking on a subform control (check box)
that has a event handler associated with it.

Everything works ok, until I click on the check box, whereupon Access
fails with an application error. It appears that execution never
reaches the check box event handler, so I have no way of debugging the
process.

Any suggestions?

Regards

Andrew Wrigley
Nov 12 '05 #1
3 1635
These can be difficult to trace. It is a matter of removing things and
tracking down the culprit. Work on a copy so you can restore the things that
are not the problem later.

Remove the code from the check box.

Are there any calculated controls on the main form that refer to values in
the subform? Temporarily remove them.

What else is happening when the check box is checked?
Does the crash occur only on the new row (when a record buffer is being
assigned)?
Only if the record is being dirtied?

What is the RecordSource for the subform? Query? Calculated fields
contibute? Query with multiple tables? Are you sure the correct fields are
represented (e.g. the foreign key of the related table, if that's the table
you are editing).

What is specified in the MasterLinkFields/ChildLinkFields? Fields?
Calculated text boxes?

Does the subform crash if it is opened on its own (i.e. directly from the
Database window)?

What version of Access? Do you have the latest service pack for your version
of Office AND for JET 4? See support.microsoft.com

--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.
"Andrew Wrigley" <aw******@yahoo.com> wrote in message
news:f5**************************@posting.google.c om...
Hi

I have what seems a corruption of an mdb that is not solved by the
decompile command line trick.

The problem appears when clicking on a subform control (check box)
that has a event handler associated with it.

Everything works ok, until I click on the check box, whereupon Access
fails with an application error. It appears that execution never
reaches the check box event handler, so I have no way of debugging the
process.

Any suggestions?

Regards

Andrew Wrigley

Nov 12 '05 #2
Andrew,
Have you tried deleting the subform and then putting it back again?
I've found this has solved some problems for me on occasion.
Kara

www.klh-tech.com
KLH Technology Solutions
Nov 12 '05 #3
Thanks for the replies

I have been adapted work done abroad, and I believe the 'corruption'
was caused by Access running out of memory due to memory leaks in the
code.

Having plugged the leaks, the anomaly appears to have disappeared. I
will be more careful in future with spurious posts, just that the job
was behind schedule and I was losing my cool.

Thanks again.

Andrew Wrigley
Nov 12 '05 #4

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

Similar topics

1
by: kevin | last post by:
I have created a main form with a combo box (cbo_student_events) that has a drop down list for various student events. I have a subform that displays all the corresponding data for the...
4
by: lukeargent | last post by:
Hi All, I have come across some rather weird error that I can only assume is something to do with my ADP file connecting to SQL Server 2000. I'm using Access XP as my front end. In simple...
14
by: alwayshouston | last post by:
Hi All! I am working on this very small database and I am confused in the designing a simple form. I only have three tables in the database. First Table: tblExpense Columns: ExpenseID ;...
12
by: Wadim Grasza | last post by:
I want to store and display (on a form or a report) multiple pictures per record in an access database. The pictures are not stored within the database. They are stored as files and the database...
2
by: Lenin Torres | last post by:
Hi everybody I have an Union Query that works fine. I used this query as the RecordSource for a Form. That Form is used as a subform in another form. Everything works fine, except for the "Filter...
1
by: Thomas Zimmermann | last post by:
I have a form with a subform in datasheet view. Now, I want to trigger a procedure (P1) each time the user selects an entire column (by clicking in the heading) in the subform. The procedure (P1) I...
5
Scott Price
by: Scott Price | last post by:
Hello, I'm running Access 2003 trying to filter a subform with approximately 15 records per year per the main record contained on the parent form. The filter works fine if the subform is opened...
12
by: Reg (Lincolnshire) | last post by:
Converted an A2003 system to A2007, on testing founf out that right- click to bring up a shortcut menu on a combo box didn't work if the combo box was in a subform. Found out that this was a...
3
by: dstork | last post by:
Has anyone else experienced Access 2007 crashing when users right click on the subform (with the intention to use the copy feature in the shortcut menu). I went through Allen Browne's...
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:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
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,...
0
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
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...

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.