So I have a problem with my database that's been bugging me for some time now. I've read countless forum threads but to no avail and am pretty much at the end of my tether with it.
I'm using Windows 7 and Microsoft Access 2010. I use a MySQL back end and Microsoft Access front end. This problem occurs in Access 2003, 2007 and 2010. I am fully up to date with service packs and updates.
I have a main form containing a sub form. The main form displays live sales orders, the sub form items against the order. Sometimes there will be no currently live sales orders so no records to display. Occasionally, usually after I've saved or deleted the last live sales order, when I close the form I receive a "No Current Record" error.
Now before you say "use error handling", this doesn't work because this is not the 3021 variant of "No Current Record". The error code on this error is 0.
It would appear there are two versions of the "No Current Record" error.
I've even tried to handle errors with a code of 0 but for some reason this error still manages to escape my error handling.
Any suggestions?
I'm using Windows 7 and Microsoft Access 2010. I use a MySQL back end and Microsoft Access front end. This problem occurs in Access 2003, 2007 and 2010. I am fully up to date with service packs and updates.
I have a main form containing a sub form. The main form displays live sales orders, the sub form items against the order. Sometimes there will be no currently live sales orders so no records to display. Occasionally, usually after I've saved or deleted the last live sales order, when I close the form I receive a "No Current Record" error.
Now before you say "use error handling", this doesn't work because this is not the 3021 variant of "No Current Record". The error code on this error is 0.
It would appear there are two versions of the "No Current Record" error.
I've even tried to handle errors with a code of 0 but for some reason this error still manages to escape my error handling.
Any suggestions?