Sorry, I should state clearly about my question.
I created 4 sets of picture over the VB form, a text input field, a load button and a delete button.
When I enter the id of one of the image categories and click the load button, the set of images will be loaded from Access db according to their path in their local directory.
I created array to store the image id in database.
i.e. array(0) = id1
array(1) = id2
array(2) = id3
array(3) = id4
another set of image:
i.e. array(0) = id5
array(1) = id6
array(2) = id7
array(3) = id8
another set of image:
i.e. array(0) = id9
array(1) = id10
array(2) = id11
array(3) = id12
So, you can see that the id number in the db will be increasing while the image nos. in the form will be remained as array(0 to 3).
I want to select one of them to delete for different sets of images. But, how can I refer to the id of the db? I can choose the array(0 to 3) for one set of images, how to tell the sql to delete the array(3) which equals to id8 in db?
Any advice?