The error message is Access violation at address 005C003C in module 'msched.exe'. Read of address 00000001.
The parameters for the query have been evaluated by the debugger and shown below. Using the debugger and stepping through the multiple iterations of the script a line that does work has the query.
Code: Select all
SQL=select PIQTYORD from D22RTNIT WHERE ((PIPCODE = '43076 GG') and (PILOCATION = '1310'))
Code: Select all
SQL=select PIQTYORD from D22RTNIT WHERE ((PIPCODE = '01003 NDC') and (PILOCATION = '1327'))
The macro fails every time at the same point.
Any clues ??