projection
Programmer
Hi Tek-tips,
I came across an interesting design issue with a textbox on an access 2k form. When the user CLICKS the textbox, the File_Enter() event happens, which has a call to a function to prompt the user with an open file dialog. Once the user selects a file, the textbox is populated with a hyperlink to the file. This is all good except that the click event is triggered after the Enter event and the file is opened by its native viewer. I would rather this not happen. So, I ask you, how do I cancel the opening of the file? I have tried docmd.cancelEvent with no real effectiveness. Perhaps I was doing something wrong.
If anyone knows how to manage and cancel events that happen, please help me. I will post code if need be.
Thank you so much in advance!
I came across an interesting design issue with a textbox on an access 2k form. When the user CLICKS the textbox, the File_Enter() event happens, which has a call to a function to prompt the user with an open file dialog. Once the user selects a file, the textbox is populated with a hyperlink to the file. This is all good except that the click event is triggered after the Enter event and the file is opened by its native viewer. I would rather this not happen. So, I ask you, how do I cancel the opening of the file? I have tried docmd.cancelEvent with no real effectiveness. Perhaps I was doing something wrong.
If anyone knows how to manage and cancel events that happen, please help me. I will post code if need be.
Thank you so much in advance!