I have a routine that I use frequently to loop through visits on a particular date, building up a Word file of letters for each visit, in alphabetical order for each person visited and, finally, formatting that file and printing it to the screen. However, one one particular day, the routine terminates prematurely without producing the final product, with the error message ‘No current record’. I have tried to identify what is happening by stepping through the code but have been unable do so. The routine works perfectly when other dates are entered and I am wondering if, on the date in question, it has encountered data either omitted or incorrectly entered within a field with which it cannot deal. I am unsure how to go about identifying the record of the relevant person.
Help greatly appreciated.
Help greatly appreciated.