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 8340923
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T05:19:03+00:00 2026-06-09T05:19:03+00:00

Fellow coders, I’m using an ADODB command to pull some information out of a

  • 0

Fellow coders,

I’m using an ADODB command to pull some information out of a database, which consists of several fields. However, when I run the code, it only ever pulls out one field, and it’s always the same one. I’m using MoveNext properly as far as I can tell, and I’m nested within an EOF while loop.

Here’s what I’ve got so far:

if (!rsStbDetails.EOF)
{
    while (!rsStbDetails.EOF)
    {
        foreach (ADODB.Field f in rsStbDetails.Fields)
        {
           if (f.Value == null)
           {
               f.Value = 0;
           }

           switch (f.Name)
           {
               // There's a load of case statements here to manipulate the values being read in        
               default:
                   SetValue(id, f.Name, f.Value, f.Position);
                   break;
           }
        }
    }
    rsStbDetails.MoveNext();
}

Any ideas?
Cheers

EDIT: Here’s the code I’m using to set up my connection:

objComm.ActiveConnection = conSQL;
objComm.CommandType = CommandTypeEnum.adCmdStoredProc;
objComm.CommandText = "Service.GetDetails";

objComm.Parameters.Append(objComm.CreateParameter("@Node", ADODB.DataTypeEnum.adVarChar, ParameterDirectionEnum.adParamInput, 50, "NAME"));
objComm.Parameters.Append(objComm.CreateParameter("@Box", ADODB.DataTypeEnum.adVarChar, ParameterDirectionEnum.adParamInput, 20, ""));
objComm.Parameters.Append(objComm.CreateParameter("@Num", ADODB.DataTypeEnum.adInteger, ParameterDirectionEnum.adParamInput, 20, 0));
objComm.Parameters.Append(objComm.CreateParameter("@Exclude", ADODB.DataTypeEnum.adInteger, ParameterDirectionEnum.adParamInput, 20, iExclude));

objComm.Parameters[1].Value = Right((string)GetProperty(id, "SName", role), 8);
  • 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-09T05:19:05+00:00Added an answer on June 9, 2026 at 5:19 am

    You should at least move rsStbDetails.MoveNext(); one brace up 🙂

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Hello fellow coders. So i decided to rewrite some of my old scripts i
Fellow Coders, so far I have been using the CI url helper to build
Fellow coders, today is my first dive into git using Tower on the Mac
Greetings, fellow coders! I have this table that contains categories and subcategories (actually I
Fellow Stackoverflowers I have a question, since I'm not a database hero. I have
Hello fellow software developers. I want to distribute a C program which is scriptable
Hello fellow coders & codetts I was wondering, if I needed to create a
Good evening fellow coders, and thank you in advance for any help/attention. This is
Hello , all my fellow coders! I've got a problem ohh chok! .. :P
I am developing an application with PyQT4 which will POST some data to a

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.