hi
i have 2 tables tblSubCatch and tblCatch both have a field called image which hold image names
when images are selected they are copied to a specific folder and then their filename entered into the fields, what i wanted to happen is if the image name already excists in either table then the string which holds the image name before its copied has a number appended to it,
i managed to get something going using "if" but say i copied the same image 3 times to test it i would end up with something like test1,jpg test12.jpg, test123,jpg instead of test1.jpg, test2.jpg and test3.jpg
can anybody point me to an example of what im trying to achieve, ive definatly seen one but not sure if its on this site, or can anybody tell me a better way to acheieve what im trying to do,
i have 2 tables tblSubCatch and tblCatch both have a field called image which hold image names
when images are selected they are copied to a specific folder and then their filename entered into the fields, what i wanted to happen is if the image name already excists in either table then the string which holds the image name before its copied has a number appended to it,
i managed to get something going using "if" but say i copied the same image 3 times to test it i would end up with something like test1,jpg test12.jpg, test123,jpg instead of test1.jpg, test2.jpg and test3.jpg
can anybody point me to an example of what im trying to achieve, ive definatly seen one but not sure if its on this site, or can anybody tell me a better way to acheieve what im trying to do,
Last edited: