NiceSeeker, Actually I have the document you mentioned. The previous codes were exactly what I had copied from that doc. So my problem is still unresolved.