On a form, if I have a record with a serial number of 123456789 (in a textbox called Serial_Number), I want to search inside \\share\folder\ to find a file with the same name as the serial number, with a pdf extension, eg 123456789.pdf. If it exists, show a command button to open the file. If not, then I want to hide (not visible) the button.
Furthermore, I want to display a pointer that shows it working to open the file (pointer/hourglass combo) until the file is opened.
I have played around with populating a list box if the file is there, which works, but I can't get it to show (or not) the button if the list box is null (or not).
But there has to be an easier way than using a hidden form control like the list box, just to show/hide another form control.
Thnaks in advance.
Thanks.
Furthermore, I want to display a pointer that shows it working to open the file (pointer/hourglass combo) until the file is opened.
I have played around with populating a list box if the file is there, which works, but I can't get it to show (or not) the button if the list box is null (or not).
But there has to be an easier way than using a hidden form control like the list box, just to show/hide another form control.
Thnaks in advance.
Thanks.