Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Macro does not execute Query

Status
Not open for further replies.

Kulguru

Programmer
Dec 15, 2000
4
US
I have a query which calls a function, the function returns some values and at same time does some error trapping and inserts data into a log table.

Select countryCode, GetName(countryCode) from countryTable;

GetName( ) will look for some data in some other table, if found it will return the value else it will insert an error message in a log table.

There are 1500 possible rows in the CountryTable.

When I make a macro OpenQuery, the whole set of data is not getting traversed. Is there any way,to traverse the whole set of data ?

 
there is no magic command except to open your recordset and

Movefirst
then
Movenext
until you are at the end

Can you provide us the code that gets your data in your function?


DougP, MCP
dposton@universal1.com

Ask me how Bar-codes can help you be more productive.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top