|
-
Aug 28th, 2003, 04:19 AM
#1
Thread Starter
Fanatic Member
Access Module Code: rst.movenext I assume... (Resolved in the nick of time)
Presumably it is perfectly simple to open an SQL statement OR a Query and then move through it record by record until EOF thus doing something with each value.
In this case I shall be wanting to do stuff to a word document dependent on the data.
My question just boils down to this:
I understand that I will be using this structure
If not EOF then
Do
Open the SQL/Query (somehow) into some object or other
result = function_to_do_stuff(object.rst.field("foo"))
result = function_to_do_stuff(object.rst.field("bar"))
object.rst.movenext
loop untill EOF
end if
BUT what syntax, words, objects etc am I to use... basically I have no idea of the correct use of the language in this instance.
Could someone post some actual code in order to get me going in the right direction?
BTW: the code will run in a module
[edit]Or a pointer to an article or anything just need to start[/edit]
Last edited by Matt_T_hat; Sep 19th, 2003 at 05:44 AM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|