Solved

VBA For Statement

Posted on 2007-11-13
2
10,907 Views
Last Modified: 2013-11-28
In the For VBA Statement below, you can count 1 to 10.
For I = 1 To 10
Next I

I wish to count from 10 to 9 using the for statement, is this possible.
0
Comment
Question by:doyle007
2 Comments
 
LVL 14

Accepted Solution

by:
ragoran earned 400 total points
ID: 20277606
You can use the step instruction to specify the increment:

for i = 10 to 1 step -1

next i
0
 

Author Comment

by:doyle007
ID: 20277758
Thanks Ragoran, that worked a treat
0

Featured Post

U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

I see at least one EE question a week that pertains to using temporary tables in MS Access.  But surprisingly, I was unable to find a single article devoted solely to this topic. I don’t intend to describe all of the uses of temporary tables in t…
Describes a method of obtaining an object variable to an already running instance of Microsoft Access so that it can be controlled via automation.
Familiarize people with the process of utilizing SQL Server views from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Access…
In Microsoft Access, when working with VBA, learn some techniques for writing readable and easily maintained code.

808 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question