This is my favorite line in the whole thread.the problem is, you have had gentle users and they never tried to bring down your app.
You will never know how a user acts.
Exactly how do you think Error Checking would have prevented that?@MajP
I know you try. But for God's sake don't tell me you can. You are one of the best programmers I've ever seen (I'm young and only 3 years into PC world). but you can't be perfect.
The following errors are from the most expensive CAD application (Solidworks). Even programmers on that range can not be bullet proof.
Google Solid works funny errors for more:
View attachment 94532
View attachment 94533
--------------------------------
View attachment 94534
And did her code work without errors? You didn't say.Do you also not wear a seatbelt because you're the best driver in the world?
You remind me of a rookie programmer who worked for my company. She was known far and wide as "Julie No Test". She was soooooooo good that if her code compiled, no testing was required. It would just work.
Flouting good practice methods because you are sooooooooo good that you don't need them does not speak well for you.
but you can't be perfect.
I ask my clients to report all errors...no matter how trivial...but inevitably that doesn't always happen.
You're asking me? I don't know. I'm not a programmer.Exactly how do you think Error Checking would have prevented that?
Wow now that's a bold statement. What gives? I would be very interested in any post that I hinted that I was perfect and that others on this forum are "Thick." I do not ever think I suggested something like that. I do think when It comes to Access I am pretty "clever", I am sure you do too. Clearly after 10s of thousands of posts and 100s of thousands of lines of Access code posted, I might know a thing or two. I have also said why that is. I have been on these forums answering threads for years. I have learned from others questions. Teaching is the best way to learn. I enjoy taking on the challenging problems.MajP will tell you different! On his 1st day here he arrogantly proclaimed how clever s/he is, and how thick the rest of us are... Only a "Thick" person would hold such a view
Also not sure what you think my view is.Only a "Thick" person would hold such a view.
MajP will tell you different! On his 1st day here he arrogantly proclaimed how clever s/he is, and how thick the rest of us are... Only a "Thick" person would hold such a view.
You're asking me? I don't know. I'm not a programmer.
But when an application shows you an empty message box, or tells you "This table was made in Excel 2010 and excel 2010 can not open it" or some meaningless messages, apparently something has gone wrong and it hasn't been trapped. Otherwise I should have seen a logical message.
I know. Me too,In case of @MajP, it's a surprise if he had ever said something like that.
I'm not sure I avoided error handling with a sense of pride. But I did take pride in the code I used to prevent errors and the resultant lack of errors reported by the users.I'm very late to this thread and many of my own thoughts have already been expressed.
However, I'm incredulous that any serious developer would treat it as a matter of pride that they do not use error handling in ACCDB or ACCDE files distributed to clients.
Of course, like any experienced developer, I test my code thoroughly before it is released. I deliberately look for problems so these can be solved before end users are involved. I do this both to ensure UX is as good as I can make it and to protect my own reputation as a developer.
However, I am well aware that no developer is perfect and things may slip through...in extreme cases with errors not being noticed for several years.
As already mentioned, not all possible modes of use can ever be tested...some end users have ways of doing things that can never reasonably be foreseen...and which may lead to very obscure errors.
I ask my clients to report all errors...no matter how trivial...but inevitably that doesn't always happen.
As a result, after over a decade of continuous use by several thousand users of my main schools app I set up detailed error logging with automated emails sent to me (with the clients' permission) as the primary developer listing full details of what/who/when/where/why/how etc.
In the first month, I was inundated with automated emails which allowed me to fix issues going back a long time but that had NEVER been brought to my attention, nor had shown up in any pre-release testing. The majority of those errors pre-dated my own involvement with the application...though not all. Within 3 months, the errors had all been fixed and the emails stopped...to my relief.
That particular app was supplied with a highly locked down ACCDB FE. If it had been an ACCDE, the app would simply have crashed when those errors occurred.
Moving on from unintended programming errors, there are errors that are built in to Access that need to be handled.
There are several examples of this type. For example:
1. A report with no data is loaded from a form. Using the Report_NoData event the report is closed automatically.
However that triggers error 2501 in the calling form .
2. Code is used to select a file or folder using file system object (FSO). If the user cancels, error 5 occurs
In both cases, that error needs to be handled. If not, an ACCDE FE will crash.
So - do enlighten me, how would those be managed without error handling?