fat controller
Slightly round the bend..
- Local time
- Today, 11:47
- Joined
- Apr 14, 2011
- Messages
- 758
I am really confused now - I have some code which works perfectly well for the vast majority of the time, however once in a while it will throw its toys out of the pram and give me an error message 'Runtime Error 2162' and states that this is due to an error in the FindRecord Statement; when debugged, it highlights the line of code (below) which is the FindRecord Statement:
Yet, I can see nothing wrong with this code? Surely if the code was duff, it wouldn't work at all?
The problem seems more likely to happen if the database has not long been opened, if that makes any sort of difference?
I'd be grateful for any help that can be given, as I am not keen on releasing the database into use knowing that its a bit buggy.
Code:
DoCmd.FindRecord EmpNo, acEntire, , acSearchAll, False, acCurrent
Yet, I can see nothing wrong with this code? Surely if the code was duff, it wouldn't work at all?
The problem seems more likely to happen if the database has not long been opened, if that makes any sort of difference?
I'd be grateful for any help that can be given, as I am not keen on releasing the database into use knowing that its a bit buggy.