John-
I have a database that when I open a form, the database crashes. I get an error saying the MS Access has stopped running and it tries to save the data. This db has been stable for years until a user was upgraded to MS Access 2013, the db works fine in MS Access 2010 so I can't figure out what is the issue. I've decompiled/compiled, compacted and repaired the db.
I removed all the VBA and nothing changed, it still crashed. So I started removing fields. When I remove a Time to Credential field (based off a calculated field in the underlying query), the database stops crashing. I'm sure the code in the query needs to be more elegant, however, why is this causing the db to crash?
Basically the calculation is looking through different dates to see which credentialing date it should use to calculate the time.
TimeToCred: IIf(DateDiff("d",[DateLtrSent],[2ndRecrednDate]) Is Not Null,(DateDiff("d",[DateLtrSent],[2ndRecrednDate])),IIf(DateDiff("d",[DateLtrSent],[RecredentDate]) Is Not Null,(DateDiff("d",[DateLtrSent],[RecredentDate])),IIf(DateDiff("d",[DateLtrSent],[InitialCredDate]) Is Not Null,(DateDiff("d",[DateLtrSent],[InitialCredDate])))))
Oh and btw, if I pause or open up a report or something else in the db, the form opens fine.
Any suggestions?
John F
Posted by: John Viescas <johnv@msn.com>
| Reply via web post | • | Reply to sender | • | Reply to group | • | Start a New Topic | • | Messages in this topic (2) |
Tidak ada komentar:
Posting Komentar