- Local time
- Today, 17:57
- Joined
- Feb 19, 2002
- Messages
- 47,070
That's what happens when you use embedded SQL rather than a querydef. You could rearrange the code so that the beginning part of the SQL string is populated once and then just before you run the query, you populate the variable part.So you're saying I need to repeat the SQL statement 3 times, for every I change the distance?
I would use a querydef that takes an argument rather than using embedded static SQL.