Thanks Muzishun, I'd just moved to a new Win2003 server and I've got my host to increase buffer to 64MB (default in IIS6 was 4mb). Error persists. Tried putting Response.Buffer = False at top of page too.
Here's a link to a text copy of my file:
http://www.staffcheck.com.au/active_mycases.txt
I can't see any unclosed loops.
I wonder if I use MEMBER_ID in my custom table instead of a text field for the member name. At the time I built that I couldn't get the getmembername function to work properly. Pretty confident I could get it to work now though.<