Advertisement

05.08.2008 at 04:41PM PDT, ID: 23388039
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

ACCESS 2007 Form Crash Again and Again
Zone: Access Forms
I have ACCESS 2007 and Windows XP with 2G of ram.

My form has been crashing all week and I can't figure out the source.  It crashes in a lot of different ways.  Today, just by scrolling down in the VB window, ACCESS crashes.  I have tried rebooting and I have Imported the database to a new database and recompiled it and checked the REferences to make sure nothing was missing.  I have decompiled and recompiled and run the "compact and repair" a hundred times.

I have about 7 tabs and many many controls.  I am duplicating a government form so I can't really skip anything.

After a crash, I can sometimes get the form to work again by deleting tabs.  Then I can add the tabs and sometimes it works again.  It just crashes in what seems an inconsistent way, and it does the same sorts of things on another computer with ACCESS 2007 and Vista.

I just installed XP SP3 to see if that helps and it made no difference.

I am attaching the database and a word doc with some screen shots.  If you copy the database to a new file, that should trigger the problems on either the new or old database.  The working form has a name of Routine... and the original one with the additional tabs I need are in the form Copy of.....  When I try to copy tabs from the Copy to the Routine form, that sometimes also works but also leads to crashing.

So you know, there are two queries.  The tabs have an on change event that changes the query that works as the datasource.  Only the second tab (tab #1 since the first tab is defined as tab 0) uses WetSoilQuery1.

Please help me, I am baffled.

I would also appreciate a way to count the total number of controls and some way to find out what the total background count is (i.e., how close I am to the maximum of 700+).
Attachments:
 
database and screen shots of error
 
Start your free trial to view this solution
Question Stats
Zone: Microsoft
Question Asked By: phmurphy
Solution Provided By: harfang
Participating Experts: 1
Solution Grade: A
Views: 6
Translate:
Loading Advertisement...
05.08.2008 at 07:55PM PDT, ID: 21530157

Rank: Guru

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
05.08.2008 at 08:45PM PDT, ID: 21530292

Rank: Guru

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
05.08.2008 at 09:32PM PDT, ID: 21530404

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
05.08.2008 at 09:42PM PDT, ID: 21530433

Rank: Guru

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 
Loading Advertisement...
Microsoft
  • Internet Protocols
  • Applications
  • Development
  • OS
  • Hardware
  • Windows Security
Apple
  • Operating Systems
  • Hardware
  • Programming
  • Networking
  • Software
Internet
  • Search Engines
  • File Sharing
  • WebTrends / Stats
  • Spy / Ad Blockers
  • Web Browsers
  • New Net Users
  • Web Development
  • Chat / IM
  • Anti Spam
  • Web Servers
  • Anti-Virus
  • Email Clients
Gamers
  • Tips
  • Online / MMORPG
  • Puzzle
  • Emulators
  • Action / Adventure
  • Role Playing
  • Consoles
  • Game Programming
  • Strategy
  • Sports
  • Misc
  • Computer Games
Digital Living
  • Hardware
  • New Net Users
  • New Users
  • Software
  • Digital Music
  • Gaming World
  • Home Security
  • Apple
  • Networking Hardware
Virus & Spyware
  • Vulnerabilities
  • IDS
  • Encryption
  • Anti-Virus
  • Operating Systems Security
  • Software Firewalls
  • WebApplications
  • Cell Phones
  • Operating Systems
  • Internet
  • Hardware Firewalls
Hardware
  • Handhelds / PDAs
  • Displays / Monitors
  • Components
  • Networking Hardware
  • Peripherals
  • Laptops/Notebooks
  • Storage
  • Servers
  • Desktops
  • New Users
  • Misc
  • Apple
Software
  • System Utilities
  • Industry Specific
  • Network Management
  • Photos / Graphics
  • Page Layout
  • VMWare
  • Misc
  • Web Development
  • OS
  • CYGWIN
  • Voice Recognition
  • Message Queue
  • Quality Assurance
  • Security
  • Firewalls
  • MultiMedia Applications
  • Development
  • Database
  • Office / Productivity
  • Business Management
  • OS/2 Apps
  • Server Software
  • Internet / Email
ITPro
  • OS
  • Storage
  • Encryption
  • Operating Systems Security
  • Apple Hardware
  • Laptops & Notebooks
  • Servers
  • Networking Hardware
  • Peripherals
  • Devices
  • Displays / Monitors
  • WebTrends / Stats
  • Search Engines
  • Firewalls
  • WebApplications
  • IDS
  • Vulnerabilities
  • Email Clients
  • File Sharing
  • Spy / Ad Blockers
  • Web Browsers
  • Web Servers
  • Networking
  • Anti-Virus
  • Chat / IM
  • Anti Spam
Developer
  • Web Servers
  • Web Browsers
  • Game Programming
  • Dev Tools
  • Industry Specific
  • Office / Productivity
  • Database
  • CYGWIN
  • Web Development
  • Search Engines
  • File Sharing
  • WebTrends / Stats
  • Programming
  • Content Management
  • Application Servers
  • Protocols
Storage
  • Removable Backup Media
  • Storage Technology
  • Servers
  • Grid
  • Remote Access
  • Backup / Restore
  • Misc
  • Hard Drives
OS
  • Miscellaneous
  • Security
  • Development
  • Linux
  • VMWare
  • MainFrame OS
  • Unix
  • Apple
  • OS / 2
  • AS / 400
  • BeOS
  • Microsoft
  • VMS / OpenVMS
Database
  • Oracle
  • Miscellaneous
  • MySQL
  • Software
  • Sybase
  • Contact Management
  • PostgreSQL
  • Data Manipulation
  • Clarion
  • InterSystems Cache
  • Siebel
  • MUMPS
  • OLAP
  • SQLBase
  • SAS
  • GIS & GPS
  • 4GL
  • Berkeley DB
  • DB2
  • Informix
  • Interbase / Firebird
  • FoxPro
  • Reporting
  • LDAP
  • Filemaker Pro
  • MS SQL Server
  • dBase
  • MS Access
Security
  • Misc
  • Web Browsers
  • Software Firewalls
  • Operating Systems Security
  • File Sharing
  • Spy / Ad Blockers
  • Vulnerabilities
  • WebApplications
  • IDS
  • Anti-Virus
  • Encryption
  • Anti Spam
  • Email Clients
  • VPN
  • Chat / IM
Programming
  • Editors IDEs
  • Installation
  • Handhelds / PDAs
  • Multimedia Programming
  • System / Kernel
  • Algorithms
  • Game
  • Signal Processing
  • Project Management
  • Open Source
  • Database
  • Misc
  • Languages
  • Processor Platforms
  • Theory
Web Development
  • Scripting
  • Blogs
  • Web Servers
  • Software
  • Search Engines
  • Web Graphics
  • Images
  • Internet Marketing
  • Images and Photos
  • Components
  • Document Imaging
  • Web Languages/Standards
  • Illustration
  • WebApplications
  • Fonts
  • WebTrends / Stats
  • Authoring
  • Digital Camera Software
  • Miscellaneous
Networking
  • Protocols
  • Apple Networking
  • Network Management
  • Message Queue
  • Application Servers
  • Content Management
  • File Servers
  • Email Servers
  • Misc
  • Java Editors & IDEs
  • Wireless
  • Networking Hardware
  • Backup / Restore
  • System Utilities
  • ISPs & Hosting
  • Web Servers
  • Storage Technology
  • Removable Backup Media
  • Servers
  • Broadband
  • Grid
  • OS / 2
  • Novell Netware
  • Unix Networking
  • Windows Networking
  • Security
  • Telecommunications
  • Operating Systems
  • Linux Networking
Other
  • Community Advisor
  • Lounge
  • Community Support
  • New Net Users
  • Philosophy / Religion
  • Math / Science
  • Miscellaneous
  • URLs
  • Expert Lounge
  • Politics
  • Puzzles / Riddles
Community Support
  • Suggestions
  • New to EE
  • New Topics
  • Community Advisor
  • CleanUp
  • Announcements
  • General
  • Feedback
  • Input
  • EE Bugs
 
05.08.2008 at 07:55PM PDT, ID: 21530157

Rank: Guru

Your current database is in terrible shape. Even the form that should work has suffered from VB corruption (the module is cut off). After deleting all lines that do not compile and adding the missing End Sub after the last Sub, all I can say is that the form behaves very badly.

After fixing all the obvious problems, I played with the form a little (being constantly nagged by a popup asking for a photo). I added a new control (to check the number after it: it was above 1000), and that alone made the form crash again. I suspect you have already passed the limit.

Basically, you have too many controls, and your code is too long.

> The tabs have an on change event that changes the query that works as the datasource.

That is a horrible idea. You should *never* change the Record Source of a form. It's sometimes a neat trick for simple forms, but it's a certain road to VB corruption in most cases. Instead, your Tab 2 should have one single control: a subform. Let that subform have the alternate source you need for it.

In fact, it would be best if each tab was a subform. You could even break down the first page into several pages for better performance.

As for the VB coding, it's highly redundant. The after update and click events are very similar; you should create simple modular code for them (as global functions or as class modules). As it stands, it's not manageable anyway.

Forgive me for saying so, but you might want to hire an Access specialist for this. I'm guessing that the table structure itself needs improvement. Your data isn't in normal form, which makes any database operation -- including creating this form -- very difficult. Several areas (all those with numbered controls) should be sub-forms, taking their data from a linked table.

I know this isn't what you wanted to read, but there is really nothing I or another expert can do through EE. This needs a complete rewrite from scratch, starting with the table structure.

(°v°)
Accepted Solution
 
05.08.2008 at 08:45PM PDT, ID: 21530292

Rank: Guru

I thought you might be. I'm working at the Botanical Garden in Geneva, on the Database of African Flowering Plants {http://www.ville-ge.ch/cjb/bd/africa} -- see the third bullet marked as (in prep.)

For your form, I suggest you start with new forms: create small manageable forms that mimic one section of your original "government form", each based on a single table: main form based directly on WetForm, and at least one sub-form for WetVeg, WetHyt, and WetSoil, using ID1 as Link Master Field and the relevant ID? as Link Child Field.

The section with the combos from Sp1 to Sp21 should be a continuous subform, showing a linked table. Whenever you have numbers in fields, it's a clear sign you should have a separate table for them: main table WetVeg, sub-table WetVegSpecies (ID2*, Nb*, Sp, SpStrat, SpIndicator, SpPCT, SpDOM). Nb would hold the number 1 to 21. Do something similar whenever you have numbers in field names: photos, soils, etc.

I'm acting as Access specialist for all the "small" databases botanists do on their own at the Garden. I hope there is someone like that where you work.

(°v°)
 
05.08.2008 at 09:32PM PDT, ID: 21530404
Yes,
I remember your help from before.  I am working alone and have no Access specialists other than what I can get from EE.  I know may not want to help such a beginner, but based on what you have described above - and the fact that I am not really very familiar with subforms -
1. I will make the three main tabs separate functioning forms.  
2. Then connect them as subforms within a single form.  I really don't have any one-to-many relationships I think.  I need to have every field available for every record so I don't have a way to be efficient in that respect.

What I have done is copy the controls for each tab to a new separate form and pasted in all the VB code into each one.  The first tab was copied to the first tab on the new form, the other forms don't have a tab control.  That didn't take much time.  I can clean out some of the code for each form so only the essential code remains, and I have all of the essential functionality.  That is going to take a lot more time, so before I get started I want to make sure my endpoint really exists.

Will I really be able to click on the tabs of the main form and open up the subform the way I want?  I made a quick test but all I got was fields from the table/query, not the controls.  Am I heading in a reasonable direction with this?

Thanks,
Pat
 
05.08.2008 at 09:42PM PDT, ID: 21530433

Rank: Guru

Ah, sorry I didn't recognize you: you must thing I'm rambling. I should have checked.

You can link a subform with a one-to-one relationship. It works exactly the same way. Of course, you will have only one linked record for each main record, but that's a small problem.

You can try this:

* Create a new form based on WetForm
* Add a tab control
* On the first tab, add a couple of fields
* Create another form based on WetVeg
* Throw in a couple of fields
* Add this as subform on the second tab of the first.

Try it without any code at first, and try to add records, edit, etc. A couple of fields is really enough to test the idea.

Good luck!
(°v°)
 
 
20080236-EE-VQP-29 / EE_QW_2_20070628