I think is a basic question but I am newbie in Access.
Situation:
- I work in an unbound form.
- In current database (say DB) I have a table (say TBL) with fields (say F1, F2 ... Fk ... Fn) and, of course, many records.
- I dimension a variable (say V).
Ask:
Please, teach me, step by step, how refer TBL and how I can to "scan" TBL with step S on the field Fk to obtain something like this:
Expand|Select|Wrap|Line Numbers
- V = 0 'Initiate V
- i = 1 'First record
- do until i > last record 'Escape from DO
- V = V + ValueFrom(Row=i,Field=Fk)
- i=i+S
- loop
Thank you in advance.
One more question: How to use CODE TAGS to indent lines ? Thank you.