G
Guest
Hello all..
I have a function - an address parser - that returns an array. Works quite well. Using VBA things work quite well, I use code similar to this
dim vAddressParsed as varian
vAddressParsed = ParseAddress(sAddressToParse
sStreetNum = vAddressParsed(1
sStreetName = vAddressParse(2
etc, etc, etc. Works perfectly, I end up with a string array with all of the elements of my address. I even have a flag within the array that indicates if the parsing had a problem. All good
The question is this
Can I use this type of function from within a SELECT query?
Right now I have to use VBA and flip through all of my records doing either an update or an append query at the end. (I'm using a cursor). I'd like to do it in one fell swoop using a query. The one hitch I can think about here is that it would run the function for each element of the array. But I can't even figure out how to do that
Any thoughts would be most appreciated..
Thanks
Greg Kaufman
I have a function - an address parser - that returns an array. Works quite well. Using VBA things work quite well, I use code similar to this
dim vAddressParsed as varian
vAddressParsed = ParseAddress(sAddressToParse
sStreetNum = vAddressParsed(1
sStreetName = vAddressParse(2
etc, etc, etc. Works perfectly, I end up with a string array with all of the elements of my address. I even have a flag within the array that indicates if the parsing had a problem. All good
The question is this
Can I use this type of function from within a SELECT query?
Right now I have to use VBA and flip through all of my records doing either an update or an append query at the end. (I'm using a cursor). I'd like to do it in one fell swoop using a query. The one hitch I can think about here is that it would run the function for each element of the array. But I can't even figure out how to do that
Any thoughts would be most appreciated..
Thanks
Greg Kaufman