AJM Messages: 2373 Registered: April 2006 Location: Surrey, UK
Senior Member
I do not understand. You said in message #2280 that $where always contains the primary key whether a selection has been made or not, so there is no reason for the error message "Primary Key is not complete". I cannot reproduce this behaviour at all - it always behaves as expected.
Can you step through with your debugger to see where the primary key in $where is being rejected?