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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T04:49:07+00:00 2026-06-17T04:49:07+00:00

I am doing some VBA programming here, and I have a Private Const with

  • 0

I am doing some VBA programming here, and I have a Private Const with two elements as follows:

Private Const myList as String = "foo;bar"

I then have a looping structure like this:

myTerms = Split(myList,";")
For I = 0 to UBound(myTerms)
   'do stuff in here
Next I

Finally, here is the new part. In tblWords there are 100 different row, consisting of simply an ID field, and a text field such as tblWords.ID and tblWords.Word.

My question is: Instead of using the Private Const and looping twice, how can I modify my loop so that it will instead loop over the tblWords 100 times, once for each row?

  • 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-17T04:49:08+00:00Added an answer on June 17, 2026 at 4:49 am

    I think you mean

    Dim rs As DAO.Recordset
    Dim db As Database
    
    Set db = CurrentDB
    Set rs = db.OpenRecordset("tblWords")
    
    Do While Not rs.EOF
       sid = rs!ID
       sword = rs!word
    
       ''And to change a word
       rs.Edit
       rs!Word = rs!Word & " edited"
       rs.Update
    
       rs.MoveNext
    Loop
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm doing some VBA development and I found creating SQLs quite efficient way of
Doing some jquery animation. I have certain divs set up with an attribute of
Doing some homework here (second assignment, still extremely green...). The object is to read
Doing some code reviews lately I came across a number of classes that have
I'm doing some webpage parsing in VBA within Excel; I'm MSHTML to download and
i have some vba code that i need to convert to c# Select Case
I'm having big problems doing operation with the date in Excel VBA. I have
I am doing some web scraping using excel vba. At one point in my
I am pretty new to programming in vba. I need some coding help which
I'm doing some VBA work. In VBA, there are Application, Presentaion, Slide, Window objects.

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.