G
Guest
I have a "button pushing" app in Access that keeps crashing out of Access
(completely, the old "do you want to send a report to MS") after doing
completely innocuous changes. I'm trying to figure out how to avoid these
problems.
Here's an example of something I think shouldn't crash (typos because I'm
re-typing, not because they're in the app):
call makeNew
dim currentRecord as recordset
currentRecord = me.form.recordset
currentRecord("type") = "Sell"
currentRecord.Update
BOOOOOM!
And this isn't the only example. It seems whereever there are two functions
that get called in a row that look at me.form.recordset, it will eventually
crash. And it's a hard crash, no trapping allowed.
Even some of the most innocuous code causes this to happen, like EXAMINGING
fields in the record. For instance I have a sub called updateStyles, all it
does is look at the current type, and if it's a Buy it turns the background
color green, and if it's a Sell, red. Every so often, BOOOM.
Why does this happen? How do I avoid it?
(completely, the old "do you want to send a report to MS") after doing
completely innocuous changes. I'm trying to figure out how to avoid these
problems.
Here's an example of something I think shouldn't crash (typos because I'm
re-typing, not because they're in the app):
call makeNew
dim currentRecord as recordset
currentRecord = me.form.recordset
currentRecord("type") = "Sell"
currentRecord.Update
BOOOOOM!
And this isn't the only example. It seems whereever there are two functions
that get called in a row that look at me.form.recordset, it will eventually
crash. And it's a hard crash, no trapping allowed.
Even some of the most innocuous code causes this to happen, like EXAMINGING
fields in the record. For instance I have a sub called updateStyles, all it
does is look at the current type, and if it's a Buy it turns the background
color green, and if it's a Sell, red. Every so often, BOOOM.
Why does this happen? How do I avoid it?