Help.Chris
Registered User.
- Local time
- Today, 08:00
- Joined
- Oct 11, 2000
- Messages
- 43
Hi everyone,
I need to loop through the values in a query to create a new complex sql statement off it. (Merging three crosstab queries)
The query has a maximum of 16 records, so I have to join the three crosstab queries together for each of the individial records.
The new sql statement I can do, already done with multiselect list box.
I now need to use the same theory, and loop through each record in my query called "Top 16 Destinations", and use a field from it called "Destination_Code".
I am using 2000, but I am using the ado and dao libraries.
Does anyone know the code to succesfuly loop through each record, evertime I have tried, I have had the error message to few parameters on the open recordset statement.
Any contribution would be greatly apreciated.
Chris
I need to loop through the values in a query to create a new complex sql statement off it. (Merging three crosstab queries)
The query has a maximum of 16 records, so I have to join the three crosstab queries together for each of the individial records.
The new sql statement I can do, already done with multiselect list box.
I now need to use the same theory, and loop through each record in my query called "Top 16 Destinations", and use a field from it called "Destination_Code".
I am using 2000, but I am using the ado and dao libraries.
Does anyone know the code to succesfuly loop through each record, evertime I have tried, I have had the error message to few parameters on the open recordset statement.
Any contribution would be greatly apreciated.
Chris