Ok, another question for this image viewer. When using my simple image viewer, I came upon a realization. My current code searches for images in a series of folders based on an account number (RPC). For an account number of 11111, the resulting file number is R:\PO11\001111_01_01.jpg. My code works fine currently, but I just noticed that it will only scroll through 9 pictures. Some account numbers have more than 9 images. I see why. I have it set to look for picture _01.jpg, _02.jpg etc. The _0 is static though. Any picture over _09.jpg, like _10.jpg won't get picked up. Please see code below in red. How can I incorporate a wildcard (*,#,?) in my current code to get past this? Thanks in advance.
pNum = 1 <--- pNum is set to 1 and then I have Next and Previous buttons that add or subtract 1 to scroll through them.dNum = 1
Rec = Me.RPC.Text