W
warren50
I have an Access database that imports a comma-delimited text file that has a
field that contains a list of URLs that are comma seperated (the array).
Example:
stock_number,image-urls
"1234","http://photos.store.com/dcm_3.jpg,http://photos.store.com/dcm_769.jpg
"1235","http://photos.store.com/dcm_6.jpg,http://photos.store.com/dcm_0134.jpg"
"1236","http://photos.store.com/dcm_7.jpg"
The [image-urls] field could have from 1 to 100 seperate URLs depending on
how many photos were taken of the item. Once I import the data file I need to
parse the URLs into another table with an individual record for each URL and
the corresponding stock number that matches that URL. Example:
stock_number|image-url
1234|http://photos.store.com/dcm_3.jpg
1234|http://photos.store.com/dcm_769.jpg
1235|http://photos.store.com/dcm_6.jpg
1235|http://photos.store.com/dcm_0134.jpg
1236|http://photos.store.com/dcm_7.jpg
I then will export this table and use in an outside script that goes to the
URL and downloads the photo renaming it to the stock number_1.jpg, _2.jpg
etc... so that I have the photos with formatted in naming convention that is
descriptive of the image.
I can use Left([image-urls], InStr([image-urls], ",")-1) right now to get
the 1st image, but I don't know how to move on through the array to et the
remaining photos.
I want to do this all in an Access query using SQL and built in functions if
possible.
field that contains a list of URLs that are comma seperated (the array).
Example:
stock_number,image-urls
"1234","http://photos.store.com/dcm_3.jpg,http://photos.store.com/dcm_769.jpg
"1235","http://photos.store.com/dcm_6.jpg,http://photos.store.com/dcm_0134.jpg"
"1236","http://photos.store.com/dcm_7.jpg"
The [image-urls] field could have from 1 to 100 seperate URLs depending on
how many photos were taken of the item. Once I import the data file I need to
parse the URLs into another table with an individual record for each URL and
the corresponding stock number that matches that URL. Example:
stock_number|image-url
1234|http://photos.store.com/dcm_3.jpg
1234|http://photos.store.com/dcm_769.jpg
1235|http://photos.store.com/dcm_6.jpg
1235|http://photos.store.com/dcm_0134.jpg
1236|http://photos.store.com/dcm_7.jpg
I then will export this table and use in an outside script that goes to the
URL and downloads the photo renaming it to the stock number_1.jpg, _2.jpg
etc... so that I have the photos with formatted in naming convention that is
descriptive of the image.
I can use Left([image-urls], InStr([image-urls], ",")-1) right now to get
the 1st image, but I don't know how to move on through the array to et the
remaining photos.
I want to do this all in an Access query using SQL and built in functions if
possible.