473,414 Members | 1,711 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,414 software developers and data experts.

Crashing Subform

I have a subform that works fine until you import it into a new database
when it crashes if you try to open it in either disign or form view.

The form, "Attendees_Subform" in my application was pattern after the
same form used in the MS template, "Event Management.mdb" application
that is downloaded from the MS Template Gallery on their website.

I narrowed down the problem to the Control Source in the,
"Attendees_Subform using the procedures outlined toward the end of this
posting. However, I do not know how to handle the problem. Below, you
will see the Control source for the two, “Attendees_Subforms”; the field
names used in each form, and the Control Source for each of the
fieldnames used in each database form:

First, here is how the form’s (suspicious) Control Source as written in
the, “Attendees_subform” in MyApplication.mdb application; that crashes
both my application and MS Access2003 as well (SQL View):

SELECT DISTINCTROW Registration.RegistrationID,
Registration.RegistrationFee, Events.EventName, Registration.eventdate,
Registration.SalesTaxRate, [Sum Of Payments Query].[Total Payments],
Registration.AttendeeID, Registration.progname,
Registration.serviceclass, Registration.RegistrationDate
FROM Events INNER JOIN (Registration LEFT JOIN [Sum Of Payments Query]
ON Registration.RegistrationID = [Sum Of Payments Query].RegistrationID)
ON Events.EventID = Registration.EventID
ORDER BY Registration.RegistrationID;
MyApplicationt.mdb Form: Attendees_Subform

Form Fields Here ar the fields used In My Application:

Fieldnames Names and =Control Source

eventtdate same
Serviceclass same
progname same
Eventname same
RegistrationID same
Total Payments same
RegistrationDate same
unbound AttendeeLastName
unbound minit
unbound AttendeeFirstName
unbound Sale Amount
=[RegistrationFee]+CLng((([SalesTaxRate]*[RegistrationFee])*100))/100
unbound Amount Due =[Sale Amount]-nz([Total Payments])

Here is how the form’s Control Source is written in the,
“Attendees_subform” in the Event Management.mdb application; that works
(SQL View):

SELECT DISTINCTROW Registration.RegistrationID,
Registration.RegistrationFee, Events.EventName, Events.StartDate,
Registration.SalesTaxRate, [Sum Of Payments Query].[Total Payments],
Registration.AttendeeID
FROM Events INNER JOIN (Registration LEFT JOIN [Sum Of Payments Query]
ON Registration.RegistrationID = [Sum Of Payments Query].RegistrationID)
ON Events.EventID = Registration.EventID
ORDER BY Registration.RegistrationID;
Event Management.mdb Form: Attendees_Subform

Form Fields These are the fields used:

Fieldnames Names and Control Source =

Startdate same
Eventname same
Total Payments same
unbound Sale Amount
=[RegistrationFee]+CLng((([SalesTaxRate]*[RegistrationFee])*100))/100
unbound Amount Due =[Sale Amount]-nz([Total Payments])

This is the last step using a procedure I used for isolating the
crashing in MyApplication.mdb and MS Access 2003:

1. Created a new (blank) application.mdb

2. Created a tablelink to the backend.

3. Created a blank form and name it, “Attendees_Subform. I Added no
controls to this form.

4. Changed the form to design view, View/Code, and made all the
references under, Tools/References to the follows – “Visual Basic for
Applications”, “Microsoft Access 11.0 Object Library”, “OLE Automation”,
“Microsoft DAO 3.6 Object Library”, “Microsoft ActiveX Data Objects 2.8
Library”, “Microsoft ADO Ext. 2.8 for DDL and Security”

5. I did nothing more than add the following Control Source used in
MyApplication.mdb (it crashes right away):

SELECT DISTINCTROW Registration.RegistrationID,
Registration.RegistrationFee, Events.EventName, Registration.eventdate,
Events.StartDate, Registration.SalesTaxRate, [Sum Of Payments
Query].[Total Payments], Registration.AttendeeID, Registration.progname,
Registration.serviceclass, Registration.RegistrationDate FROM Events
INNER JOIN (Registration LEFT JOIN [Sum Of Payments Query] ON
Registration.RegistrationID = [Sum Of Payments Query].RegistrationID) ON
Events.EventID = Registration.EventID ORDER BY
Registration.RegistrationID;

I can't figure out what's going on.


*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 13 '05 #1
0 1374

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

Similar topics

14
by: Java and Swing | last post by:
static PyObject *wrap_doStuff(PyObject *self, PyObject *args) { // this will store the result in a Python object PyObject *finalResult; // get arguments from Python char *result = 0; char *in=...
15
by: Rey | last post by:
Howdy all. Appreciate your help with several problems I'm having: I'm trying to determine if the Visit subform (subformVisits) has a new record or been changed, i.e. dirty. The form that...
25
by: Lyn | last post by:
Hi, I am working on a genealogy form. The only table (so far) lists everybody in the family, one record per person. Each record has an autonum ID. The parent form (frmMainForm) displays the...
1
by: John Michael | last post by:
I have a form that has a subform that has a subform. The subform loads a record based on a combo lookup box in the main form. I'm trying to set a value in the subform based on a value in a...
4
by: Dave Boyd | last post by:
Hi, I have two very similar forms each with a subform. The main form gets a few fields from the user and passes this back to a query that the subform is bound to. The requery is done when the...
0
by: jphelan | last post by:
I have a subform that works fine until you import it into a new database when it crashes if you try to open it in either disign or form view. The form, "Attendees_Subform" in my application was...
6
by: AAJ | last post by:
Hi all I have a listbox on a form. If I set its rowsource directly, and the query in the rowsourse returns no data, then the displayed listbox is empty (exactly as you would expect) ...
6
by: DMUM via AccessMonster.com | last post by:
Hello I am trying to pass the name of my subform to a function/sub but I can't seem to get it to work. I am using an autokey function (ctrl E) to unlock text boxes on a subform. I have a few...
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: 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...
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
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...
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
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,...
0
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...

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.