Results 1 to 27 of 27

Thread: Access Module Code: rst.movenext I assume... (Resolved in the nick of time)

Threaded View

  1. #1

    Thread Starter
    Fanatic Member Matt_T_hat's Avatar
    Join Date
    Dec 2001
    Location
    '76 Male Body Evil-Errors: 666
    Posts
    774

    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.
    ?
    'What's this bit for anyway?
    For Jono

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width