Easy question to answer!!!

Results 1 to 3 of 3

Thread: Easy question to answer!!!

  1. #1
    mark Guest

    Default Easy question to answer!!!

    I want to increment the maxedid going into field contactid... it doesnt want to increment... the number stays the same the whole way throught the loop. the loop is already governed by the array so I couldnt use that to increment it. <BR><BR><BR><BR> For iLoop = LBound(jobContactNamefRows) + 1 to UBound(jobContactNamefRows)<BR> &#039;Response.Write jobContactNamefRows(iLoop) & "<BR> "<BR> <BR> rsinsert = "Insert into Contacts (contactid,Firs.....) Values ("&session("maxedid")&", &#039;"&jobContactNa.....)"<BR> response.write(rsinsert)<BR> set rsinsert = myconn.execute(rsinsert)<BR> maxedid = maxedid + 1<BR> Next

  2. #2
    Join Date
    Dec 1969
    Los Angeles, CA

    Default RE: Easy question to answer!!!

    Well like you mentioned it will be the same as your iLoop so why do it again...if you really have to then maybe you should initilaize the value to 0 BEFORE the loop and try.<BR><BR>

  3. #3
    mark Guest

    Default RE: Easy question to answer!!!

    nope... couldnt do that since it already has a value which i needed. But, I figured it out, I forgot to put attach the term session to maxedid, which is why it didnt increment. thanks for you help tho... see ya.

Posting Permissions

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