Collection help!!

Results 1 to 2 of 2

Thread: Collection help!!

  1. #1
    Aleksa Jovkovic Guest

    Default Collection help!!

    This is really strange. I have a from which is populated from a database. On this form I have a select box that containt all of the publishers in the database. I want to do something simple, to check whether or not the ID from the Articles Table is the same as the current ID in the Publishers table. Something like:<BR>while (!oRsPub.EOF){<BR>if (oRsPub("ID") == oRs("Pub_ID")){<BR>Response.Write("&#060;option selected&#062;"+oRsPub("ID"));<BR>}else{<BR>Respon se.Write("&#060;option&#062;"+oRsPub("ID"));<BR>}< BR>oRsPub.MoveNext();<BR>}<BR><BR>But this is not working!! I tried it a million times in VBScript, and I know it can be done. What am I doing wrong?? I checked, and the oRs("Pub_ID") contains the correct value...<BR><BR>Help me!!! :(

  2. #2
    nath Guest

    Default RE: Collection help!!

    how abt closing the option tag

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts