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

Crashing Form (& Access)

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.

Nov 13 '05 #1
0 1822

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

Similar topics

3
by: pbbriggs | last post by:
I will try to be as descriptive as possible, but this error has me stumped and I am not sure what relevant info to include.... I am running Access XP on a Windows XP machine. I initially began...
1
by: Gordon Sanderson | last post by:
I have been working with for two days on a database with no problems(changing forms and adding code to the forms and a module). Shut down last night was fine, with no errors generated. This...
3
by: Siobhan Perricone | last post by:
I have a user who is having a problem with an access database that I didn't build and haven't had anything to do with in the past. The database opens up to the switchboard, and she clicks through...
5
by: Jack MacDonald | last post by:
This is very strange and disturbing. Last night I opened the FE of my development version of an A97 database and immediately received a Windows-level error message titled "msaccess.exe Application...
0
by: John Phelan Cummings | 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) ...
3
by: hbean | last post by:
I'm working on an event procedure for a form - seems relatively straightforward to me, but for some reason Access keeps crashing on me. All the procedure is doing is checking to see if a recordset...
1
by: aaron | last post by:
Hello folks, Has anyone ever experienced the Access 2002 runtime crashing when the "Compact on Close" option is set for an MDE file? We are currently having this problem on a number of...
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
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:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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...
0
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...

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.