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

  • Home
  • SEARCH
  • 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 7997715
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T15:01:37+00:00 2026-06-04T15:01:37+00:00

I have this records in the table: username, password, rights, allowance admin, asdf, admin,

  • 0

I have this records in the table:

username, password, rights, allowance
admin, asdf, admin, 20
john, qwer, user, 10
peter, zxcv, user, 10

I want to select one record at a time

I used:

for i as integer = 1 to sqliteDataReader.FieldCount
dim ss as string = "select * from xtable where recno()=" & Ctr(i)
...
Next

But it doesn’t get 1 record at a time.

  • 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-04T15:01:38+00:00Added an answer on June 4, 2026 at 3:01 pm

    It looks like a way to iterate using recno is described here.

    I would, however, recommend selecting individual records from a database table by using a primary key or a unique key that you’ve set rather than a DBMS-specific row numbering scheme. In your case, it would probably also be best to grab all the records you will need in one query and then iterate through that set in your application code, so you don’t have to repeatedly connect and select from the database. Perhaps using a DataTable or SqliteDataReader might be more appropriate.

    Also, I should point out that you are currently iterating through records by first only getting a count of the columns in your table. I’m not sure if the number of rows of your table is always going to be equal to the number of columns. That would seem odd.

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

Sidebar

Related Questions

I have a table like this <tr> <td>No.</td> <td>Username</td> <td>Password</td> <td>Usage Left</td> <td>%</td> <td>Valid
I have db with this table (TableToDo): http://goo.gl/NlTEk I want display all records in
I have a table that has records with a structure similar to this.. ID
I have a table which has event-details. New records will be inserted to this
I have table in mysql which contain fields id, username, password and salt: Example:
I have two tables: User (username, password) Profile (profileId, gender, dateofbirth, ...) Currently I'm
I have a table where a record looks like this varchar(255) Name varchar(255) Text
Let's say I have a table like this: name |order_id ======================= first_record | 0
I have some records like this: ID Personel_Code Time --- ------------- ------ 1 0011
I have an ASP.NET MVC 3 application. This application requests records through jQuery. jQuery

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.