Re: Need help with Loop that is not repeating the function
- From: efandango <efandango@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Mon, 27 Oct 2008 13:19:02 -0700
John,
Going back to your most recent comment:
"You're not passing those values to the function. I don't know where it should
be getting them from, but I'm surprised the code even compiles since you're
calling a two-argument function with no arguments, and you're calling it as if
it were a sub rather than a function. I gather that it's looking up an
address... but what do you want to DO with that address once you've looked it
up?"
I think this whole paragraph sums up where I am, and am not...
I don't know enough to know where or how to feed the function the neccesary
address data that it can then use to poll yahoo's gecoder and get back the
lat/lon gecodes that I want to feed back into my table. As have I said, I
have managed to do it with any one record (that the form is open on), but
only the one record; not a whole recordset. I assume in my ignorance that If
the function was happily doing it for one record, then by putting in a loop,
it would iterate through the recordset and do them all. Obviously I was wrong
in that assumption, hence the original reuqest in this thread.
As I see it, the function should be geting the records from the open
recordset: 'Generate_KML_Points_Groups'
as in this example:
Set qdf = db.QueryDefs("Generate_KML_Points_Groups")
Set rs = qdf.OpenRecordset(dbOpenDynaset)
as to how I actually 'feed' them sequentially to the function, I just don't
know, because I thought the loop would take care of that.
I don't know where to go from here, except to ask for some help on getting
the records from the recordset to parse through the function and write the
resultant yahoo data back to the recordset/table.
regards
Eric
"John W. Vinson" wrote:
On Sun, 26 Oct 2008 17:07:01 -0700, efandango.
<efandango@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
Thanks for the feedback, I will re-read it tomorrow, can I come back to you
gain on this?. I am in the UK, and it's past midnight now, and I've been on
this all weekend...
Sure, Eric - hope you got some rest.
--
John W. Vinson [MVP]
- References:
- Need help with Loop that is not repeating the function
- From: efandango
- Re: Need help with Loop that is not repeating the function
- From: John W . Vinson
- Re: Need help with Loop that is not repeating the function
- From: efandango
- Re: Need help with Loop that is not repeating the function
- From: John W . Vinson
- Re: Need help with Loop that is not repeating the function
- From: John W . Vinson
- Re: Need help with Loop that is not repeating the function
- From: efandango
- Re: Need help with Loop that is not repeating the function
- From: John W . Vinson
- Need help with Loop that is not repeating the function
- Prev by Date: RE: Access Save button
- Next by Date: RE: Store Added Value List Items
- Previous by thread: Re: Need help with Loop that is not repeating the function
- Next by thread: Need to convert "tab" to 5 spaces
- Index(es):
Relevant Pages
|