Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8009025
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T18:19:25+00:00 2026-06-04T18:19:25+00:00

I have the following code which goes to the next available record to process.

  • 0

I have the following code which goes to the next available record to process.

        Dim ds As New DataSet
        Dim strListType As String = Request.QueryString("ListType")
        Dim strStatusFilter As String = ""
        Select Case strListType
            Case "newmember"
                strStatusFilter = "Status_Ind in (1,4,6,8) and IsMember_Ind=1"
            Case "nonmember"
                strStatusFilter = "Status_Ind in (1,4,6,8) and IsMember_Ind=1"
            End Select

        ds = objClass.List(0, 10, "Due_Dt, Joined_Date ASC", "", strStatusFilter)

       'go to the next record
        If ds.Tables(0).Rows.Count > 0 Then
            Server.Transfer("Request.aspx?Request_ID=" & ds.Tables(0).Rows(0).Item("Request_ID") & "&ListType=" & strListType)
        Else
            Server.Transfer("List.aspx?Status=NewMember")
        End If

ObjClass.List is a method which is implemented to run a view and filter out data. I am ordering data on two columns due_dt and joined_dt.

My problem is that it goes to the same record everytime if I didnt update my due date. I just want to go to the next record if am not updating it. Ho can I have the behaviour I want? what changes I can make?

Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T18:19:27+00:00Added an answer on June 4, 2026 at 6:19 pm

    The following statement returns the first row in the table:

    ds.Tables(0).Rows(0).Item("Request_ID")
    

    To get the second row, you could use this statement:

    ds.Tables(0).Rows(1).Item("Request_ID")
    

    To loop through all the rows, you could do something like this:

    For Each row As DataRow in ds.Tables(0).Rows
        Dim requestId As Object = row.Item("Request_ID")
    Next
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have the following line of code which when compiled with GHC it goes
I have the following code which draws an attributed string in a rect: CGContextRef
I have the following code which splits a string of numbers (separated by a
I have the following code which when used in a link goes forward to
I have the following code which goes through a table that has a table
I have following code which works for radio buttons but need to be changed
I want to know is below code correct ? I have following code which
i have the following code which works fine to download image form url .
I have the following code which is meant to access the local database and
I have the following code which works: $(document).ready(function() { var xhr = false; func_two();

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.