S
Shiva
Hi,
I'm trying to get familiar with VBA-programming in Access 2000.
My question is: how do I execute a query in VBA and retrieve the results of
that query? It has to be an "on-the-fly"-query, so something like this (in
pseudocode):
- execute query "SELECT name FROM emp"
- while not EOF
get name value and assign it another variable
get next record
- wend
The query will be executed in an event.
Thanks in advance!
I'm trying to get familiar with VBA-programming in Access 2000.
My question is: how do I execute a query in VBA and retrieve the results of
that query? It has to be an "on-the-fly"-query, so something like this (in
pseudocode):
- execute query "SELECT name FROM emp"
- while not EOF
get name value and assign it another variable
get next record
- wend
The query will be executed in an event.
Thanks in advance!