Array problem

Results 1 to 2 of 2

Thread: Array problem

  1. #1
    Join Date
    Dec 1969

    Default Array problem

    Hi,<BR>How can I store the recordcount values into an array and then open a table and check each field value with array value and display it in a check box if it is matches and unchecked if it does not matches.<BR>It is very urgent. Please somebody kindly help me?<BR>Thanks.

  2. #2
    Join Date
    Dec 1969

    Default RE: Array problem

    Do you mean that the prior page has a number of fields and each field corresponds to one record in the recordset???<BR><BR>If so, why do you need an array?<BR><BR>Why not just do this:<BR><BR>&#060;%<BR>...<BR>Count = 1 <BR>Do Until RS.EOF<BR>&nbsp; &nbsp; Response.Write "&#060;INPUT Name=&#039;CB" & Count & "&#039; Value=&#039;" & Count & "&#039;"<BR>&nbsp; &nbsp; If RS("valueToMatch") = Request.Form("Field" & Count) Then Response.Write " SELECTED"<BR>&nbsp; &nbsp; Response.Write "&#062; If box checked, form matched database&lt;BR&#062;"<BR>&nbsp; &nbsp; ...<BR>&nbsp; &nbsp; RS.MoveNext<BR>&nbsp; &nbsp; Count = Count + 1<BR>Loop<BR>%&#062;<BR><BR>If that&#039;s not what you mean, then maybe you need to explain a *LOT* more fully.<BR><BR>

Posting Permissions

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