I am using a drag and drop facility (courtesy of EE) to perform various tasks. Once a document has been dragged into the drop off area (Me.txtDrop) a string is created 'ExtensionType' which works out the file extension (eg pdf xls etc.). This all works fine, but I need to add in an IF statement wrapper to handle user errors that basically does this:
If 'ExtensionType' is empty then bring up a message saying "No document has been dragged across"
If 'ExtensionType' is NOT 'pdf' OR 'doc' OR 'docx' then bring up a message saying "this file format is not supported"
else carry in with the rest of the code ...
Can anyone help?