I am trying to write some some code for my button: "Open". If click, a file with that 'file address' will be automatically opened:
I have the following VBA function that has the file location as an input string. My question is, how do I refer the C:... link in the column "File Location" to the function's input? I mean, this won't work (but if I comment out the function, and uncomment the sub, I have the pop-out Window that says Hi!):
Trying to refer to another column inside the report
So how do I do it?
Remove the two lines declaring and setting strURLLink.
You would call the function from the button click event.
However, it doesn't really need to be a Function, could be a Sub.
Why not just directly in the button Click event?
And this is not macro code, it is VBA. Macro coding in Access is very different.